Merge pull request #872 from PDoakORNL/enable_ninja

ninja requires this policy to operate
This commit is contained in:
Ye Luo 2018-05-24 13:45:34 -05:00 committed by GitHub
commit 6e75e8baf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ IF(COMMAND cmake_policy)
# are used in try_compile test cmake projects.
# CHECK_CXX_SOURCE_COMPILES and others depend on try_compile
endif(CMAKE_VERSION VERSION_GREATER 3.1.3 AND NOT $ENV{CRAYPE_VERSION} MATCHES ".")
IF(CMAKE_GENERATOR MATCHES "Ninja")
cmake_policy(SET CMP0058 NEW)
ENDIF(CMAKE_GENERATOR MATCHES "Ninja")
ENDIF(COMMAND cmake_policy)