diff options
author | Brad King <brad.king@kitware.com> | 2006-08-30 17:59:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-30 17:59:56 (GMT) |
commit | 712f3a3da496f8b80a31a6853d743a7ede5c169c (patch) | |
tree | ff43869ffcb603cdaabed2f293e45c81b5fb9126 /Source/kwsys/kwsysPlatformCxxTests.cmake | |
parent | 82e5ab5d4f981c46a4f26a5d9e15bf6ea1d81e6d (diff) | |
download | CMake-712f3a3da496f8b80a31a6853d743a7ede5c169c.zip CMake-712f3a3da496f8b80a31a6853d743a7ede5c169c.tar.gz CMake-712f3a3da496f8b80a31a6853d743a7ede5c169c.tar.bz2 |
COMP: Fix try-compile to fail properly on HP.
Diffstat (limited to 'Source/kwsys/kwsysPlatformCxxTests.cmake')
-rw-r--r-- | Source/kwsys/kwsysPlatformCxxTests.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/kwsysPlatformCxxTests.cmake b/Source/kwsys/kwsysPlatformCxxTests.cmake index bd07f61..6560fa3 100644 --- a/Source/kwsys/kwsysPlatformCxxTests.cmake +++ b/Source/kwsys/kwsysPlatformCxxTests.cmake @@ -4,7 +4,7 @@ MACRO(KWSYS_PLATFORM_CXX_TEST var description invert) TRY_COMPILE(${var}_COMPILED ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/kwsysPlatformCxxTests.cxx - COMPILE_DEFINITIONS -DTEST_${var} ${KWSYS_PLATFORM_CXX_TEST_DEFINES} + COMPILE_DEFINITIONS -DTEST_${var} ${KWSYS_PLATFORM_CXX_TEST_DEFINES} ${KWSYS_PLATFORM_CXX_TEST_EXTRA_FLAGS} OUTPUT_VARIABLE OUTPUT) IF(${var}_COMPILED) FILE(APPEND @@ -50,7 +50,7 @@ MACRO(KWSYS_PLATFORM_CXX_TEST_RUN var description invert) TRY_RUN(${var} ${var}_COMPILED ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/kwsysPlatformCxxTests.cxx - COMPILE_DEFINITIONS -DTEST_${var} ${KWSYS_PLATFORM_CXX_TEST_DEFINES} + COMPILE_DEFINITIONS -DTEST_${var} ${KWSYS_PLATFORM_CXX_TEST_DEFINES} ${KWSYS_PLATFORM_CXX_TEST_EXTRA_FLAGS} OUTPUT_VARIABLE OUTPUT) # Note that ${var} will be a 0 return value on success. |