We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6152784 commit ca02ad4Copy full SHA for ca02ad4
cmake/misc.cmake
@@ -1,6 +1,13 @@
1
-FUNCTION(MESSAGE_ONCE id out)
2
- IF(NOT __msg1_${id} STREQUAL "${out}")
+IF ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.7")
+ FUNCTION(MESSAGE_ONCE id out)
3
MESSAGE(STATUS "${out}")
4
- ENDIF()
5
- SET(__msg1_${id} "${out}" CACHE INTERNAL "")
6
-ENDFUNCTION()
+ ENDFUNCTION()
+ELSE()
7
+ STRING(MD5 hash "${out}")
8
+ IF(NOT __msg1_${id} STREQUAL "${hash}")
9
+ MESSAGE(STATUS "${out}")
10
+ ENDIF()
11
+ SET(__msg1_${id} ${hash} CACHE INTERNAL "")
12
13
+ENDIF()
0 commit comments