[Cmake-commits] [cmake-commits] king committed kwsysPlatformTests.cmake 1.4 1.5

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Feb 12 10:46:52 EST 2010


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv28732/Source/kwsys

Modified Files:
	kwsysPlatformTests.cmake 
Log Message:
Fix KWSYS_PLATFORM_INFO_TEST when user removes tree

In commit 'Create KWSYS_PLATFORM_INFO_TEST macro' (2009-11-20) we
implemented the macro to use a cache entry to avoid re-running the
try_compile().  However, the output copied from the try_compile is
needed on every configure.  If the user wipes out the build tree but not
the cache file then the try_compile() will not re-run to recreate the
needed file.  We address the problem by teaching the macro to run the
try_compile() whenever its output file does not exist.


Index: kwsysPlatformTests.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/kwsysPlatformTests.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** kwsysPlatformTests.cmake	20 Nov 2009 13:37:56 -0000	1.4
--- kwsysPlatformTests.cmake	12 Feb 2010 15:46:50 -0000	1.5
***************
*** 178,182 ****
  
      # Compile the test binary.
!     IF(NOT DEFINED ${var}_COMPILED)
        MESSAGE(STATUS "${description}")
        TRY_COMPILE(${var}_COMPILED
--- 178,182 ----
  
      # Compile the test binary.
!     IF(NOT EXISTS ${KWSYS_PLATFORM_INFO_FILE})
        MESSAGE(STATUS "${description}")
        TRY_COMPILE(${var}_COMPILED



More information about the Cmake-commits mailing list