[cmake-commits] hoffman committed CMakeLists.txt 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jan 31 14:00:46 EST 2007


Update of /cvsroot/CMake/CMake/Tests/TryCompile
In directory public:/mounts/ram/cvs-serv24462

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: add more output when test fails


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/TryCompile/CMakeLists.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CMakeLists.txt	14 Jun 2006 16:28:32 -0000	1.6
+++ CMakeLists.txt	31 Jan 2007 19:00:44 -0000	1.7
@@ -6,7 +6,7 @@
     ${TryCompile_SOURCE_DIR}/pass.c
     OUTPUT_VARIABLE TRY_OUT)
 IF(NOT SHOULD_PASS)
-  MESSAGE(SEND_ERROR "should pass failed ")
+  MESSAGE(SEND_ERROR "should pass failed ${TRY_OUT}")
 ENDIF(NOT SHOULD_PASS)
 
 # try to compile a file that should not compile
@@ -15,7 +15,7 @@
     ${TryCompile_SOURCE_DIR}/fail.c
     OUTPUT_VARIABLE TRY_OUT)
 IF(SHOULD_FAIL)
-   MESSAGE(SEND_ERROR "Should fail passed")
+   MESSAGE(SEND_ERROR "Should fail passed ${TRY_OUT}")
 ENDIF(SHOULD_FAIL)
 
 # try to compile a file that should compile
@@ -24,7 +24,7 @@
     ${TryCompile_SOURCE_DIR}/pass.c
     OUTPUT_VARIABLE TRY_OUT)
 IF(NOT SHOULD_PASS)
-  MESSAGE(SEND_ERROR "should pass failed ")
+  MESSAGE(SEND_ERROR "should pass failed ${TRY_OUT}")
 ENDIF(NOT SHOULD_PASS)
 
 # try to compile a file that should not compile
@@ -33,7 +33,7 @@
     ${TryCompile_SOURCE_DIR}/fail.c
     OUTPUT_VARIABLE TRY_OUT)
 IF(SHOULD_FAIL)
-   MESSAGE(SEND_ERROR "Should fail passed")
+   MESSAGE(SEND_ERROR "Should fail passed ${TRY_OUT}")
 ENDIF(SHOULD_FAIL)
 
 IF(NOT SHOULD_FAIL)



More information about the Cmake-commits mailing list