summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LoadCommand/CMakeCommands/CMakeLists.txt7
-rw-r--r--Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt7
2 files changed, 12 insertions, 2 deletions
diff --git a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
index 87f0b3b..3cbaa5e 100644
--- a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
+++ b/Tests/LoadCommand/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)
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)