[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.4 1.5
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Jun 15 10:55:26 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/Plugin
In directory public:/mounts/ram/cvs-serv1261/Tests/Plugin
Modified Files:
CMakeLists.txt
Log Message:
BUG: Create an exe's implib output dir for VS
If an executable marks symbols with __declspec(dllexport) then VS
creates an import library for it. However, it forgets to create the
directory that will contain the import library if it is different from
the location of the executable. We work around this VS bug by creating
a pre-build event on the executable target to make the directory.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Plugin/CMakeLists.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** CMakeLists.txt 25 Mar 2008 15:27:02 -0000 1.4
--- CMakeLists.txt 15 Jun 2009 14:55:21 -0000 1.5
***************
*** 35,38 ****
--- 35,40 ----
ENABLE_EXPORTS 1
OUTPUT_NAME example
+ # Test placing exe import library in unique directory.
+ ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/exe
)
TARGET_LINK_LIBRARIES(example_exe kwsys)
More information about the Cmake-commits
mailing list