summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompileFeatures.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-05-20 14:42:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-20 14:42:54 (GMT)
commit0dffbb93def3bd7922da7bd38ba9f8d19c49da17 (patch)
tree2599eaf79ebb4244867e991b478720e34917b387 /Modules/CMakeDetermineCompileFeatures.cmake
parent2d5e3d2d2bfd79311c40db173d13f6d0cfb10019 (diff)
downloadCMake-0dffbb93def3bd7922da7bd38ba9f8d19c49da17.zip
CMake-0dffbb93def3bd7922da7bd38ba9f8d19c49da17.tar.gz
CMake-0dffbb93def3bd7922da7bd38ba9f8d19c49da17.tar.bz2
Features: Ensure that list exists to remove from.
Diffstat (limited to 'Modules/CMakeDetermineCompileFeatures.cmake')
-rw-r--r--Modules/CMakeDetermineCompileFeatures.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompileFeatures.cmake b/Modules/CMakeDetermineCompileFeatures.cmake
index 3762912..da68e94 100644
--- a/Modules/CMakeDetermineCompileFeatures.cmake
+++ b/Modules/CMakeDetermineCompileFeatures.cmake
@@ -67,7 +67,7 @@ function(cmake_determine_compile_features lang)
return()
endif()
- if (CMAKE_CXX98_COMPILE_FEATURES)
+ if (CMAKE_CXX11_COMPILE_FEATURES AND CMAKE_CXX98_COMPILE_FEATURES)
list(REMOVE_ITEM CMAKE_CXX11_COMPILE_FEATURES ${CMAKE_CXX98_COMPILE_FEATURES})
endif()