summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexRelativePaths
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ComplexRelativePaths')
-rw-r--r--Tests/ComplexRelativePaths/Executable/CMakeLists.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt
index c4d5f3c..801c777 100644
--- a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt
+++ b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt
@@ -8,16 +8,14 @@ TARGET_LINK_LIBRARIES(complex ${COMPLEX_LIBS})
#
# Link to CMake lib
+# Specify the same one for debug/optimized to increase coverage
#
-FIND_LIBRARY(CMAKE_LIB
- CMakeLib
- ${Wrapping_BINARY_DIR}/../../Source/${CMAKE_CFG_INTDIR})
+LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
-# Specify the same one for debug/optimized to increase coverage
TARGET_LINK_LIBRARIES(complex
- ${CMAKE_LIB}
- debug ${CMAKE_LIB}
- optimized ${CMAKE_LIB})
+ CMakeLib
+ debug CMakeLib
+ optimized CMakeLib)
#
# Output the files required by 'complex' to a file.
@@ -35,4 +33,3 @@ INSTALL_TARGETS(/tmp complex)
INSTALL_PROGRAMS(/tmp complex)
SOURCE_GROUP(A_GROUP ".cxx")
-