FIX: fix dummy lib name for Unix

This commit is contained in:
Sebastien Barre 2002-03-29 15:41:10 -05:00
parent b3647fe6d3
commit 420b1a63fe
3 changed files with 18 additions and 6 deletions

View File

@ -81,10 +81,14 @@ MAKE_DIRECTORY("${Complex_BINARY_DIR}/make_dir")
# Test FIND_LIBARY # Test FIND_LIBARY
# Create a dummy empty lib # 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( CONFIGURE_FILE(
${Complex_SOURCE_DIR}/Library/dummy ${Complex_SOURCE_DIR}/Library/dummy
${Complex_BINARY_DIR}/Library/dummylib${ext} ${Complex_BINARY_DIR}/Library/libdummylib${ext}
COPYONLY IMMEDIATE) COPYONLY IMMEDIATE)
ENDFOREACH (ext) ENDFOREACH (ext)

View File

@ -81,10 +81,14 @@ MAKE_DIRECTORY("${Complex_BINARY_DIR}/make_dir")
# Test FIND_LIBARY # Test FIND_LIBARY
# Create a dummy empty lib # 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( CONFIGURE_FILE(
${Complex_SOURCE_DIR}/Library/dummy ${Complex_SOURCE_DIR}/Library/dummy
${Complex_BINARY_DIR}/Library/dummylib${ext} ${Complex_BINARY_DIR}/Library/libdummylib${ext}
COPYONLY IMMEDIATE) COPYONLY IMMEDIATE)
ENDFOREACH (ext) ENDFOREACH (ext)

View File

@ -81,10 +81,14 @@ MAKE_DIRECTORY("${Complex_BINARY_DIR}/make_dir")
# Test FIND_LIBARY # Test FIND_LIBARY
# Create a dummy empty lib # 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( CONFIGURE_FILE(
${Complex_SOURCE_DIR}/Library/dummy ${Complex_SOURCE_DIR}/Library/dummy
${Complex_BINARY_DIR}/Library/dummylib${ext} ${Complex_BINARY_DIR}/Library/libdummylib${ext}
COPYONLY IMMEDIATE) COPYONLY IMMEDIATE)
ENDFOREACH (ext) ENDFOREACH (ext)