From 420b1a63fe9946575ae8ee4cf9f3f8a8c87f57d2 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Fri, 29 Mar 2002 15:41:10 -0500 Subject: [PATCH] FIX: fix dummy lib name for Unix --- Tests/Complex/CMakeLists.txt | 8 ++++++-- Tests/ComplexOneConfig/CMakeLists.txt | 8 ++++++-- Tests/ComplexRelativePaths/CMakeLists.txt | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) 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)