Fix check of cmake version (#2672)

Verify cmake version in Foundation library build.
This commit is contained in:
Joerg-Christian Boehme 2019-04-08 13:11:30 +02:00 committed by GitHub
parent 196540ce34
commit 02d5743a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ target_compile_features(Foundation
PUBLIC
$<$<NOT:$<BOOL:${DISABLE_CPP11}>>:cxx_defaulted_move_initializers>
)
if(NOT DISABLE_CPP14 AND CMAKE_VERSION VERSION_GREATER 3.7)
if(NOT DISABLE_CPP14 AND CMAKE_VERSION VERSION_GREATER "3.8")
target_compile_features(Foundation PUBLIC cxx_std_14)
endif()