Features: Ensure that list exists to remove from.

This commit is contained in:
Stephen Kelly 2014-05-20 16:42:54 +02:00
parent 2d5e3d2d2b
commit 0dffbb93de
1 changed files with 1 additions and 1 deletions

View File

@ -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()