mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-06 13:45:00 +00:00
CMake: Require a C++11 compiler for the optional test suite
This commit is contained in:
parent
ede28c8fe0
commit
47b86b5d46
1 changed files with 4 additions and 0 deletions
|
@ -167,6 +167,10 @@ endif()
|
|||
if(EXPAT_BUILD_TESTS)
|
||||
# We have to call enable_language() before modifying any CMAKE_CXX_* variables
|
||||
enable_language(CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF) # i.e. -std=c++11 rather than default -std=gnu++11
|
||||
endif()
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue