This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  2f188bac9d3e4c5b7e2faf8c6fb0ea546f77b538 (commit)
       via  83142f3f758b9f6925c334cc9cf6a72c9dc1be6e (commit)
      from  30efb5cf51ee6e297ebd0855834520af10fc5b36 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2f188bac9d3e4c5b7e2faf8c6fb0ea546f77b538
commit 2f188bac9d3e4c5b7e2faf8c6fb0ea546f77b538
Merge: 30efb5c 83142f3
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Tue Sep 9 08:46:18 2014 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Tue Sep 9 08:46:18 2014 -0400

    Merge topic 'update-kwsys' into next
    
    83142f3f Revert topic 'update-kwsys'


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=83142f3f758b9f6925c334cc9cf6a72c9dc1be6e
commit 83142f3f758b9f6925c334cc9cf6a72c9dc1be6e
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Tue Sep 9 08:45:56 2014 -0400
Commit:     Brad King <brad.k...@kitware.com>
CommitDate: Tue Sep 9 08:45:56 2014 -0400

    Revert topic 'update-kwsys'
    
    It will be revised and restored.

diff --git a/Source/kwsys/kwsysPlatformTests.cmake 
b/Source/kwsys/kwsysPlatformTests.cmake
index 16bc969..f9ee254 100644
--- a/Source/kwsys/kwsysPlatformTests.cmake
+++ b/Source/kwsys/kwsysPlatformTests.cmake
@@ -13,7 +13,7 @@ SET(KWSYS_PLATFORM_TEST_FILE_C kwsysPlatformTestsC.c)
 SET(KWSYS_PLATFORM_TEST_FILE_CXX kwsysPlatformTestsCXX.cxx)
 
 MACRO(KWSYS_PLATFORM_TEST lang var description invert)
-  IF(NOT DEFINED ${var}_COMPILED)
+  IF("${var}_COMPILED" MATCHES "^${var}_COMPILED$")
     MESSAGE(STATUS "${description}")
     TRY_COMPILE(${var}_COMPILED
       ${CMAKE_CURRENT_BINARY_DIR}
@@ -43,7 +43,7 @@ MACRO(KWSYS_PLATFORM_TEST lang var description invert)
         MESSAGE(STATUS "${description} - no")
       ENDIF(${var}_COMPILED)
     ENDIF(${invert} MATCHES INVERT)
-  ENDIF()
+  ENDIF("${var}_COMPILED" MATCHES "^${var}_COMPILED$")
   IF(${invert} MATCHES INVERT)
     IF(${var}_COMPILED)
       SET(${var} 0)
@@ -60,7 +60,7 @@ MACRO(KWSYS_PLATFORM_TEST lang var description invert)
 ENDMACRO(KWSYS_PLATFORM_TEST)
 
 MACRO(KWSYS_PLATFORM_TEST_RUN lang var description invert)
-  IF(NOT DEFINED ${var})
+  IF("${var}" MATCHES "^${var}$")
     MESSAGE(STATUS "${description}")
     TRY_RUN(${var} ${var}_COMPILED
       ${CMAKE_CURRENT_BINARY_DIR}
@@ -107,7 +107,7 @@ MACRO(KWSYS_PLATFORM_TEST_RUN lang var description invert)
         MESSAGE(STATUS "${description} - failed to compile")
       ENDIF(${var}_COMPILED)
     ENDIF(${invert} MATCHES INVERT)
-  ENDIF()
+  ENDIF("${var}" MATCHES "^${var}$")
 
   IF(${invert} MATCHES INVERT)
     IF(${var}_COMPILED)

-----------------------------------------------------------------------

Summary of changes:
 Source/kwsys/kwsysPlatformTests.cmake |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits

Reply via email to