[cmake-commits] king committed CMakeLists.txt 1.33 1.34
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Sep 27 14:27:13 EDT 2006
Update of /cvsroot/CMake/CMake/Tests/Complex/Library
In directory public:/mounts/ram/cvs-serv2787
Modified Files:
CMakeLists.txt
Log Message:
ENH: Re-enable preprocessing target test but specifically disable it on broken platforms.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Complex/Library/CMakeLists.txt,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- CMakeLists.txt 24 Sep 2006 14:28:47 -0000 1.33
+++ CMakeLists.txt 27 Sep 2006 18:27:07 -0000 1.34
@@ -106,7 +106,22 @@
# Test generation of preprocessed sources.
IF("${CMAKE_GENERATOR}" MATCHES "Makefile" AND CMAKE_MAKE_PROGRAM)
IF(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE)
- ADD_CUSTOM_TARGET(test_preprocess #ALL
+ # Skip running this part of the test on certain platforms
+ # until they are fixed.
+ SET(MAYBE_ALL ALL)
+ LIST(LENGTH CMAKE_OSX_ARCHITECTURES ARCH_COUNT)
+ IF(ARCH_COUNT GREATER 1)
+ # OSX does not support preprocessing more than one architecture.
+ SET(MAYBE_ALL)
+ ENDIF(ARCH_COUNT GREATER 1)
+ IF("${CMAKE_MAKE_PROGRAM}" MATCHES "msys")
+ # Executing make with a full path at an MSYS prompt produces
+ # a bad path conversion and breaks the child make.
+ SET(MAYBE_ALL)
+ ENDIF("${CMAKE_MAKE_PROGRAM}" MATCHES "msys")
+
+ # Custom target to try preprocessing invocation.
+ ADD_CUSTOM_TARGET(test_preprocess ${MAYBE_ALL}
COMMAND ${CMAKE_COMMAND} -E remove CMakeFiles/create_file.dir/create_file.i
COMMAND ${CMAKE_MAKE_PROGRAM} create_file.i
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/test_preprocess.cmake
More information about the Cmake-commits
mailing list