[CMake] Visual Studio and dynamic project
Tyler Roscoe
tyler at cryptio.net
Mon May 25 12:17:48 EDT 2009
On Mon, May 25, 2009 at 11:28:02AM +0200, ariasgore at gmx.de wrote:
> IF( CMAKE_GENERATOR MATCHES "Visual Studio" )
> # this prevents generation of /debug or /release directories
> SET_TARGET_PROPERTIES( ${PROJECTNAME} PROPERTIES PREFIX "../" )
> ENDIF( CMAKE_GENERATOR MATCHES "Visual Studio" )
>
> ok, this was easy. The static lib is now indeed generated in the
> desired location BUT when it comes to the dynamic compilation the DLL
> is placed correctly in the output directory BUT the import library is
> always put in a debug or release subdirectory which is quite annoying.
I also use the "prefix hack" and my .lib and .dll end up in the same
place. Maybe you're not setting ARCHIVE_OUTPUT_DIRECTORY in the same way
you set LIBRARY_OUTPUT_DIRECTORY?
tyler
More information about the CMake
mailing list