blob: e0aab8f7645ff43cdb02167896841d2097a1fff6 [file]
# enable_language() policy check should respect the policy inside of block()
cmake_policy(SET CMP0220 NEW)
block()
cmake_policy(SET CMP0220 OLD)
add_subdirectory(cxx)
if(CMAKE_CXX_COMPILER_LOADED)
message(FATAL_ERROR
"enable_language(): language configuration was incorrectly propagated up a subdirectory with CMP0220 OLD inside a block()")
endif()
endblock()