summaryrefslogtreecommitdiffstats
path: root/Tests/LoadCommand/CMakeCommands
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 19:56:28 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 19:56:28 (GMT)
commit4ca00b8d3ee6d59a6dda248687e035994290ff0a (patch)
tree957a1d26429525b7397d0aff2b7f8b255431963a /Tests/LoadCommand/CMakeCommands
parent32fcc2464f6db10814fb078f32e567e99dd03370 (diff)
downloadCMake-4ca00b8d3ee6d59a6dda248687e035994290ff0a.zip
CMake-4ca00b8d3ee6d59a6dda248687e035994290ff0a.tar.gz
CMake-4ca00b8d3ee6d59a6dda248687e035994290ff0a.tar.bz2
Some minor fixes for mac
Diffstat (limited to 'Tests/LoadCommand/CMakeCommands')
-rw-r--r--Tests/LoadCommand/CMakeCommands/CMakeLists.txt2
-rw-r--r--Tests/LoadCommand/CMakeCommands/cmTestCommand.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
index cf8cb0b..87f0b3b 100644
--- a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
+++ b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
@@ -8,4 +8,4 @@ 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 SHARED cmTestCommand.c)
+ADD_LIBRARY(cmCMAKE_TEST_COMMAND MODULE cmTestCommand.c)
diff --git a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
index a31e14a..4eca9a4 100644
--- a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
+++ b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
@@ -10,7 +10,7 @@ typedef struct
/* do almost everything in the initial pass */
-int InitialPass(void *inf, void *mf, int argc, char *argv[])
+static int InitialPass(void *inf, void *mf, int argc, char *argv[])
{
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
@@ -32,7 +32,7 @@ int InitialPass(void *inf, void *mf, int argc, char *argv[])
return 1;
}
-void FinalPass(void *inf, void *mf)
+static void FinalPass(void *inf, void *mf)
{
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
/* get our client data from initial pass */
@@ -45,7 +45,7 @@ void FinalPass(void *inf, void *mf)
}
}
-void Destructor(void *inf)
+static void Destructor(void *inf)
{
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
/* get our client data from initial pass */