summaryrefslogtreecommitdiffstats
path: root/Tests/LoadCommandOneConfig/CMakeCommands
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 21:24:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 21:24:47 (GMT)
commitba10f9622339641d1048a1424c313c90b117c0db (patch)
tree820ae634f74f9e68d14eed391e921470236068a2 /Tests/LoadCommandOneConfig/CMakeCommands
parentd7b3da7d9cf1551c677499450c09005e5fe7e458 (diff)
downloadCMake-ba10f9622339641d1048a1424c313c90b117c0db.zip
CMake-ba10f9622339641d1048a1424c313c90b117c0db.tar.gz
CMake-ba10f9622339641d1048a1424c313c90b117c0db.tar.bz2
Fix problem
Diffstat (limited to 'Tests/LoadCommandOneConfig/CMakeCommands')
-rw-r--r--Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt
index 87f0b3b..3cbaa5e 100644
--- a/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt
+++ b/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt
@@ -8,4 +8,9 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
INCLUDE_DIRECTORIES(${CMAKE_ROOT}/include ${CMAKE_ROOT}/Source)
-ADD_LIBRARY(cmCMAKE_TEST_COMMAND MODULE cmTestCommand.c)
+
+IF(APPLE)
+ ADD_LIBRARY(cmCMAKE_TEST_COMMAND MODULE cmTestCommand.c)
+ELSE(APPLE)
+ ADD_LIBRARY(cmCMAKE_TEST_COMMAND SHARED cmTestCommand.c)
+ENDIF(APPLE)