diff options
author | Brad King <brad.king@kitware.com> | 2004-01-22 15:23:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-01-22 15:23:20 (GMT) |
commit | f9a3f74d87a875e172c8128a3e2e5d215a54dd31 (patch) | |
tree | 9b2994b6c9324941342df199707047ef6edd16fb /Tests/Jump | |
parent | 3a33f2c33822a3f266064b2e483ab79b5675bd5c (diff) | |
download | CMake-f9a3f74d87a875e172c8128a3e2e5d215a54dd31.zip CMake-f9a3f74d87a875e172c8128a3e2e5d215a54dd31.tar.gz CMake-f9a3f74d87a875e172c8128a3e2e5d215a54dd31.tar.bz2 |
ERR: Fixed post-build rule to copy shared library correctly.
Diffstat (limited to 'Tests/Jump')
-rw-r--r-- | Tests/Jump/Library/CMakeLists.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Tests/Jump/Library/CMakeLists.txt b/Tests/Jump/Library/CMakeLists.txt index 3139800..fce9c20 100644 --- a/Tests/Jump/Library/CMakeLists.txt +++ b/Tests/Jump/Library/CMakeLists.txt @@ -3,7 +3,7 @@ ADD_LIBRARY(jumpShared SHARED jumpShared.cxx) IF(WIN32) SET(LIB_NAME - ${CMAKE_SHARED_LIBRARY_PREFIX}jumpStatic${CMAKE_SHARED_LIBRARY_SUFFIX}) + ${CMAKE_SHARED_LIBRARY_PREFIX}jumpShared${CMAKE_SHARED_LIBRARY_SUFFIX}) SET(EXE_DIR ${Jump_BINARY_DIR}/Executable) IF(EXECUTABLE_OUTPUT_PATH) SET(EXE_DIR ${EXECUTABLE_OUTPUT_PATH}) @@ -12,10 +12,8 @@ IF(WIN32) IF(LIBRARY_OUTPUT_PATH) SET(LIB_DIR ${LIBRARY_OUTPUT_PATH}) ENDIF(LIBRARY_OUTPUT_PATH) - ADD_CUSTOM_COMMAND(TARGET target - POST_BUILD - COMMAND ${CMAKE_COMMAND} - ARGS -E copy + ADD_CUSTOM_COMMAND(TARGET jumpShared + POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy ${LIB_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME} - ${EXE_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME} + ${EXE_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}) ENDIF(WIN32) |