CMake build system: Fix on older linux?
This commit is contained in:
parent
ff4e8d94c0
commit
c0a9c67632
@ -5,9 +5,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
# Add our own cmake module path.
|
||||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules/)
|
||||
|
||||
if (UNIX)
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
# Workaround for an old CMake, which does not understand CMAKE_CXX_STANDARD.
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
|
||||
add_compile_options(-std=c++11 -Wall)
|
||||
endif()
|
||||
|
||||
# Where all the bundled libraries reside?
|
||||
|
Loading…
Reference in New Issue
Block a user