From 51cb75d454bd95d67179594fbe0fd9c9baaf2e7b Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 2 Apr 2004 09:43:35 -0500 Subject: ENH: fix for apple --- Source/CMakeLists.txt | 1 + Tests/Jump/Library/Shared/CMakeLists.txt | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 310e38a..3ba2ff1 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -502,6 +502,7 @@ IF(BUILD_TESTING) "${CMake_SOURCE_DIR}/Tests/Jump" "${CMake_BINARY_DIR}/Tests/Jump/NoLibOut" --build-exe-dir "${CMake_BINARY_DIR}/Tests/Jump/NoLibOut/Executable" + --build-run-dir "${CMake_BINARY_DIR}/Tests/Jump/NoLibOut/Executable" --build-project Jump --build-generator ${CMAKE_GENERATOR} --build-makeprogram ${MAKEPROGRAM} diff --git a/Tests/Jump/Library/Shared/CMakeLists.txt b/Tests/Jump/Library/Shared/CMakeLists.txt index f020446..46d4d36 100644 --- a/Tests/Jump/Library/Shared/CMakeLists.txt +++ b/Tests/Jump/Library/Shared/CMakeLists.txt @@ -1,6 +1,14 @@ ADD_LIBRARY(jumpShared SHARED jumpShared.cxx) IF(WIN32) + SET(SHARED_MUST_BE_IN_EXE_DIR 1) +ENDIF(WIN32) + +IF(APPLE) + SET(SHARED_MUST_BE_IN_EXE_DIR 1) +ENDIF(APPLE) + +IF(SHARED_MUST_BE_IN_EXE_DIR) SET(LIB_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}jumpShared${CMAKE_SHARED_LIBRARY_SUFFIX}) SET(EXE_DIR ${Jump_BINARY_DIR}/Executable) @@ -15,4 +23,4 @@ IF(WIN32) POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy ${LIB_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME} ${EXE_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}) -ENDIF(WIN32) +ENDIF(SHARED_MUST_BE_IN_EXE_DIR) -- cgit v0.12