mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
GNU-FindBinUtils: Avoid setting policy CMP0054
The `cmake_policy(SET)` call triggers `CMP0011` warnings when this module is used in a project that does not set `CMP0011` to NEW. We could avoid these with a `cmake_policy` PUSH/POP pair, but it is simpler to adjust our code to not trigger `CMP0054` in the first place.
This commit is contained in:
1 parent
b9d36826c5
commit
8fc934de0e
1 file changed
+1
-3
@@ -1,6 +1,4 @@
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
if("${_CMAKE_PROCESSING_LANGUAGE}" STREQUAL "")
|
||||
if(NOT DEFINED _CMAKE_PROCESSING_LANGUAGE OR _CMAKE_PROCESSING_LANGUAGE STREQUAL "")
|
||||
message(FATAL_ERROR "Internal error: _CMAKE_PROCESSING_LANGUAGE is not set")
|
||||
endif()
|
||||
|
||||
|
||||
Reference in new issue
Block a user