ENH: add a double try compile to fix crazy make on hp
This commit is contained in:
parent
0870efbe46
commit
a41e31b536
|
@ -30,6 +30,13 @@ ELSE(COMMAND CMAKE_TEST_COMMAND)
|
||||||
${LoadedCommand_SOURCE_DIR}/CMakeCommands
|
${LoadedCommand_SOURCE_DIR}/CMakeCommands
|
||||||
CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
|
CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
|
||||||
OUTPUT_VARIABLE OUTPUT )
|
OUTPUT_VARIABLE OUTPUT )
|
||||||
|
# do another TRY_COMPILE to get around make
|
||||||
|
# problem on hp
|
||||||
|
TRY_COMPILE(COMPILE_OK
|
||||||
|
${LoadedCommand_BINARY_DIR}/CMakeCommands
|
||||||
|
${LoadedCommand_SOURCE_DIR}/CMakeCommands
|
||||||
|
CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
|
||||||
|
OUTPUT_VARIABLE OUTPUT )
|
||||||
ENDIF(COMMAND CMAKE_TEST_COMMAND)
|
ENDIF(COMMAND CMAKE_TEST_COMMAND)
|
||||||
|
|
||||||
MESSAGE("Output from try compile: ${OUTPUT}")
|
MESSAGE("Output from try compile: ${OUTPUT}")
|
||||||
|
|
|
@ -30,6 +30,13 @@ ELSE(COMMAND CMAKE_TEST_COMMAND)
|
||||||
${LoadedCommand_SOURCE_DIR}/CMakeCommands
|
${LoadedCommand_SOURCE_DIR}/CMakeCommands
|
||||||
CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
|
CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
|
||||||
OUTPUT_VARIABLE OUTPUT )
|
OUTPUT_VARIABLE OUTPUT )
|
||||||
|
# do another TRY_COMPILE to get around make
|
||||||
|
# problem on hp
|
||||||
|
TRY_COMPILE(COMPILE_OK
|
||||||
|
${LoadedCommand_BINARY_DIR}/CMakeCommands
|
||||||
|
${LoadedCommand_SOURCE_DIR}/CMakeCommands
|
||||||
|
CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO
|
||||||
|
OUTPUT_VARIABLE OUTPUT )
|
||||||
ENDIF(COMMAND CMAKE_TEST_COMMAND)
|
ENDIF(COMMAND CMAKE_TEST_COMMAND)
|
||||||
|
|
||||||
MESSAGE("Output from try compile: ${OUTPUT}")
|
MESSAGE("Output from try compile: ${OUTPUT}")
|
||||||
|
|
Loading…
Reference in New Issue