Some minor fixes for mac
This commit is contained in:
parent
32fcc2464f
commit
4ca00b8d3e
|
@ -8,4 +8,4 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_ROOT}/include ${CMAKE_ROOT}/Source)
|
INCLUDE_DIRECTORIES(${CMAKE_ROOT}/include ${CMAKE_ROOT}/Source)
|
||||||
ADD_LIBRARY(cmCMAKE_TEST_COMMAND SHARED cmTestCommand.c)
|
ADD_LIBRARY(cmCMAKE_TEST_COMMAND MODULE cmTestCommand.c)
|
||||||
|
|
|
@ -10,7 +10,7 @@ typedef struct
|
||||||
|
|
||||||
|
|
||||||
/* do almost everything in the initial pass */
|
/* 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;
|
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ int InitialPass(void *inf, void *mf, int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FinalPass(void *inf, void *mf)
|
static void FinalPass(void *inf, void *mf)
|
||||||
{
|
{
|
||||||
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
||||||
/* get our client data from initial pass */
|
/* 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;
|
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
||||||
/* get our client data from initial pass */
|
/* get our client data from initial pass */
|
||||||
|
|
|
@ -8,4 +8,4 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_ROOT}/include ${CMAKE_ROOT}/Source)
|
INCLUDE_DIRECTORIES(${CMAKE_ROOT}/include ${CMAKE_ROOT}/Source)
|
||||||
ADD_LIBRARY(cmCMAKE_TEST_COMMAND SHARED cmTestCommand.c)
|
ADD_LIBRARY(cmCMAKE_TEST_COMMAND MODULE cmTestCommand.c)
|
||||||
|
|
|
@ -10,7 +10,7 @@ typedef struct
|
||||||
|
|
||||||
|
|
||||||
/* do almost everything in the initial pass */
|
/* 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;
|
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ int InitialPass(void *inf, void *mf, int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FinalPass(void *inf, void *mf)
|
static void FinalPass(void *inf, void *mf)
|
||||||
{
|
{
|
||||||
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
||||||
/* get our client data from initial pass */
|
/* 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;
|
cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
|
||||||
/* get our client data from initial pass */
|
/* get our client data from initial pass */
|
||||||
|
|
Loading…
Reference in New Issue