Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
eab24670
Commit
eab24670
authored
Sep 18, 2002
by
Ken Martin
Browse files
test passing CMAKE_FLAGS
parent
610ff11c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Tests/LoadCommand/CMakeCommands/CMakeLists.txt
View file @
eab24670
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
)
Tests/LoadCommand/CMakeCommands/cmTestCommand.c
View file @
eab24670
...
...
@@ -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
...
...
Tests/LoadCommand/CMakeLists.txt
View file @
eab24670
...
...
@@ -7,7 +7,7 @@ SET (TEST_COMMAND_TEST1 1)
TRY_COMPILE
(
COMPILE_OK
${
LoadedCommand_BINARY_DIR
}
/CMakeCommands
${
LoadedCommand_SOURCE_DIR
}
/CMakeCommands
CMAKE_LOADED_COMMANDS
)
CMAKE_LOADED_COMMANDS
CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
)
# if the compile was OK, try loading the command
IF
(
COMPILE_OK
)
...
...
Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt
View file @
eab24670
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
)
Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
View file @
eab24670
...
...
@@ -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
...
...
Tests/LoadCommandOneConfig/CMakeLists.txt
View file @
eab24670
...
...
@@ -7,7 +7,7 @@ SET (TEST_COMMAND_TEST1 1)
TRY_COMPILE
(
COMPILE_OK
${
LoadedCommand_BINARY_DIR
}
/CMakeCommands
${
LoadedCommand_SOURCE_DIR
}
/CMakeCommands
CMAKE_LOADED_COMMANDS
)
CMAKE_LOADED_COMMANDS
CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
)
# if the compile was OK, try loading the command
IF
(
COMPILE_OK
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment