From a41e31b5369ea281809ae22e66eb4a839efc1aed Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 16 Apr 2003 13:33:33 -0400 Subject: ENH: add a double try compile to fix crazy make on hp --- Tests/LoadCommand/CMakeLists.txt | 7 +++++++ Tests/LoadCommandOneConfig/CMakeLists.txt | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Tests/LoadCommand/CMakeLists.txt b/Tests/LoadCommand/CMakeLists.txt index c6706f9..1913864 100644 --- a/Tests/LoadCommand/CMakeLists.txt +++ b/Tests/LoadCommand/CMakeLists.txt @@ -30,6 +30,13 @@ ELSE(COMMAND CMAKE_TEST_COMMAND) ${LoadedCommand_SOURCE_DIR}/CMakeCommands CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO 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) MESSAGE("Output from try compile: ${OUTPUT}") diff --git a/Tests/LoadCommandOneConfig/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeLists.txt index c6706f9..1913864 100644 --- a/Tests/LoadCommandOneConfig/CMakeLists.txt +++ b/Tests/LoadCommandOneConfig/CMakeLists.txt @@ -30,6 +30,13 @@ ELSE(COMMAND CMAKE_TEST_COMMAND) ${LoadedCommand_SOURCE_DIR}/CMakeCommands CMAKE_LOADED_COMMANDS CMAKE_FLAGS -DMUDSLIDE_TYPE:STRING=MUCHO 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) MESSAGE("Output from try compile: ${OUTPUT}") -- cgit v0.12