summaryrefslogtreecommitdiff
path: root/Tests/LoadCommand/CMakeCommands
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-18 11:38:15 -0400
committerKen Martin <ken.martin@kitware.com>2002-09-18 11:38:15 -0400
commiteab24670e3e2a8b2a7469ba418e183c363ff27d1 (patch)
tree3a035e56719c5fa0a612010983c0f7781650f96d /Tests/LoadCommand/CMakeCommands
parent610ff11cf3725178d70ff0719aedf2f4520e38ce (diff)
downloadcmake-eab24670e3e2a8b2a7469ba418e183c363ff27d1.tar.gz
test passing CMAKE_FLAGS
Diffstat (limited to 'Tests/LoadCommand/CMakeCommands')
-rw-r--r--Tests/LoadCommand/CMakeCommands/CMakeLists.txt4
-rw-r--r--Tests/LoadCommand/CMakeCommands/cmTestCommand.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
index 3a019aa767..4c45349150 100644
--- a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
+++ b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
@@ -1,4 +1,8 @@
PROJECT(CMAKE_LOADED_COMMANDS)
+IF (MUDSLIDE_TYPE MATCHES MUCHO)
+ ADD_DEFINITIONS(-DMUCHO_MUDSLIDE)
+ENDIF (MUDSLIDE_TYPE MATCHES MUCHO)
+
INCLUDE_DIRECTORIES(${CMAKE_ROOT}/include ${CMAKE_ROOT}/Source)
ADD_LIBRARY(cmCMAKE_TEST_COMMAND SHARED cmTestCommand.c)
diff --git a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
index f1e1f214c0..ecdffc0c8e 100644
--- a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
+++ b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
@@ -59,6 +59,7 @@ CM_PLUGIN_EXPORT const char *cmGetName()
return "CMAKE_TEST_COMMAND";
}
+#ifdef MUCHO_MUDSLIDE
void CM_PLUGIN_EXPORT cmInitializeCommand(cmLoadedCommandInfo *info)
{
info->InitialPass = InitialPass;
@@ -66,6 +67,7 @@ void CM_PLUGIN_EXPORT cmInitializeCommand(cmLoadedCommandInfo *info)
info->Destructor = Destructor;
info->m_Inherited = 0;
}
+#endif