mirror of https://github.com/CGAL/cgal
Avoir a CMake error
When the list `CMAKE_CXX_COMPILE_FEATURES` is empty, there was a syntax error. ``` CMake Error at /mnt/testsuite/cmake/modules/CGAL_CreateSingleSourceCGALProgram.cmake:27 (list): list sub-command REMOVE_ITEM requires two or more arguments. Call Stack (most recent call first): CMakeLists.txt:75 (create_single_source_cgal_program) ```
This commit is contained in:
parent
50d753350e
commit
e8dede494e
|
|
@ -24,8 +24,10 @@ function(create_single_source_cgal_program firstfile )
|
||||||
endif()
|
endif()
|
||||||
if(CXX_FEATURES)
|
if(CXX_FEATURES)
|
||||||
set(MISSING_CXX_FEATURES ${CXX_FEATURES})
|
set(MISSING_CXX_FEATURES ${CXX_FEATURES})
|
||||||
|
if(CMAKE_CXX_COMPILE_FEATURES)
|
||||||
list(REMOVE_ITEM MISSING_CXX_FEATURES ${CMAKE_CXX_COMPILE_FEATURES})
|
list(REMOVE_ITEM MISSING_CXX_FEATURES ${CMAKE_CXX_COMPILE_FEATURES})
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
# Now MISSING_CXX_FEATURES is the set CXX_FEATURES minus CMAKE_CXX_COMPILE_FEATURES
|
# Now MISSING_CXX_FEATURES is the set CXX_FEATURES minus CMAKE_CXX_COMPILE_FEATURES
|
||||||
if(MISSING_CXX_FEATURES)
|
if(MISSING_CXX_FEATURES)
|
||||||
message(STATUS "NOTICE: ${exe_name}.cpp requires the C++ features \"${MISSING_CXX_FEATURES}\" and will not be compiled.")
|
message(STATUS "NOTICE: ${exe_name}.cpp requires the C++ features \"${MISSING_CXX_FEATURES}\" and will not be compiled.")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue