summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-08-23 17:47:04 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-08-23 17:47:04 (GMT)
commite1d5c0c72908cb4b104e36702ab6007ab4111dc3 (patch)
tree817c60b46694ae1a55572e24d1f13d72eb117443 /Tests
parent3f36d234213fd9e23a9402eabb2198e79c6ebe61 (diff)
downloadCMake-e1d5c0c72908cb4b104e36702ab6007ab4111dc3.zip
CMake-e1d5c0c72908cb4b104e36702ab6007ab4111dc3.tar.gz
CMake-e1d5c0c72908cb4b104e36702ab6007ab4111dc3.tar.bz2
BUG: fix for cygwin
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Complex/Executable/CMakeLists.txt4
-rw-r--r--Tests/ComplexOneConfig/Executable/CMakeLists.txt4
-rw-r--r--Tests/ComplexRelativePaths/Executable/CMakeLists.txt4
3 files changed, 9 insertions, 3 deletions
diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt
index 2779fcb..49d9858 100644
--- a/Tests/Complex/Executable/CMakeLists.txt
+++ b/Tests/Complex/Executable/CMakeLists.txt
@@ -19,10 +19,12 @@ TARGET_LINK_LIBRARIES(complex
IF(WIN32)
# we must copy the dll to the correct location
FIND_FILE(CMAKE_DLL CMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug)
+ FIND_FILE(CMAKE_DLL libCMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug)
+ GET_FILENAME_COMPONENT(CMAKE_DLL_NAME ${CMAKE_DLL} NAME)
IF (CMAKE_DLL)
CONFIGURE_FILE(
${CMAKE_DLL}
- ${Complex_BINARY_DIR}/bin/CMakeLib.dll COPYONLY)
+ ${Complex_BINARY_DIR}/bin/${CMAKE_DLL_NAME} COPYONLY)
ENDIF (CMAKE_DLL)
ENDIF (WIN32)
diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt
index 2779fcb..49d9858 100644
--- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/Executable/CMakeLists.txt
@@ -19,10 +19,12 @@ TARGET_LINK_LIBRARIES(complex
IF(WIN32)
# we must copy the dll to the correct location
FIND_FILE(CMAKE_DLL CMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug)
+ FIND_FILE(CMAKE_DLL libCMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug)
+ GET_FILENAME_COMPONENT(CMAKE_DLL_NAME ${CMAKE_DLL} NAME)
IF (CMAKE_DLL)
CONFIGURE_FILE(
${CMAKE_DLL}
- ${Complex_BINARY_DIR}/bin/CMakeLib.dll COPYONLY)
+ ${Complex_BINARY_DIR}/bin/${CMAKE_DLL_NAME} COPYONLY)
ENDIF (CMAKE_DLL)
ENDIF (WIN32)
diff --git a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt
index 2779fcb..49d9858 100644
--- a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt
+++ b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt
@@ -19,10 +19,12 @@ TARGET_LINK_LIBRARIES(complex
IF(WIN32)
# we must copy the dll to the correct location
FIND_FILE(CMAKE_DLL CMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug)
+ FIND_FILE(CMAKE_DLL libCMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug)
+ GET_FILENAME_COMPONENT(CMAKE_DLL_NAME ${CMAKE_DLL} NAME)
IF (CMAKE_DLL)
CONFIGURE_FILE(
${CMAKE_DLL}
- ${Complex_BINARY_DIR}/bin/CMakeLib.dll COPYONLY)
+ ${Complex_BINARY_DIR}/bin/${CMAKE_DLL_NAME} COPYONLY)
ENDIF (CMAKE_DLL)
ENDIF (WIN32)