diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index 1c317d504..41098aa12 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/CMakeLists.txt @@ -81,10 +81,14 @@ MAKE_DIRECTORY("${Complex_BINARY_DIR}/make_dir") # Test FIND_LIBARY # Create a dummy empty lib # -FOREACH (ext "${CMAKE_SHLIB_SUFFIX};.lib;.so") +CONFIGURE_FILE( + ${Complex_SOURCE_DIR}/Library/dummy + ${Complex_BINARY_DIR}/Library/dummylib.lib + COPYONLY IMMEDIATE) +FOREACH (ext "${CMAKE_SHLIB_SUFFIX};.so;.a;.sl") CONFIGURE_FILE( ${Complex_SOURCE_DIR}/Library/dummy - ${Complex_BINARY_DIR}/Library/dummylib${ext} + ${Complex_BINARY_DIR}/Library/libdummylib${ext} COPYONLY IMMEDIATE) ENDFOREACH (ext) diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index 1c317d504..41098aa12 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -81,10 +81,14 @@ MAKE_DIRECTORY("${Complex_BINARY_DIR}/make_dir") # Test FIND_LIBARY # Create a dummy empty lib # -FOREACH (ext "${CMAKE_SHLIB_SUFFIX};.lib;.so") +CONFIGURE_FILE( + ${Complex_SOURCE_DIR}/Library/dummy + ${Complex_BINARY_DIR}/Library/dummylib.lib + COPYONLY IMMEDIATE) +FOREACH (ext "${CMAKE_SHLIB_SUFFIX};.so;.a;.sl") CONFIGURE_FILE( ${Complex_SOURCE_DIR}/Library/dummy - ${Complex_BINARY_DIR}/Library/dummylib${ext} + ${Complex_BINARY_DIR}/Library/libdummylib${ext} COPYONLY IMMEDIATE) ENDFOREACH (ext) diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt index 1c317d504..41098aa12 100644 --- a/Tests/ComplexRelativePaths/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/CMakeLists.txt @@ -81,10 +81,14 @@ MAKE_DIRECTORY("${Complex_BINARY_DIR}/make_dir") # Test FIND_LIBARY # Create a dummy empty lib # -FOREACH (ext "${CMAKE_SHLIB_SUFFIX};.lib;.so") +CONFIGURE_FILE( + ${Complex_SOURCE_DIR}/Library/dummy + ${Complex_BINARY_DIR}/Library/dummylib.lib + COPYONLY IMMEDIATE) +FOREACH (ext "${CMAKE_SHLIB_SUFFIX};.so;.a;.sl") CONFIGURE_FILE( ${Complex_SOURCE_DIR}/Library/dummy - ${Complex_BINARY_DIR}/Library/dummylib${ext} + ${Complex_BINARY_DIR}/Library/libdummylib${ext} COPYONLY IMMEDIATE) ENDFOREACH (ext)