CMake build process: Workaround for an old CMake on Linux.

This commit is contained in:
bubnikv 2017-08-28 23:11:43 +02:00
parent d5c2c252a5
commit ff4e8d94c0
2 changed files with 14 additions and 5 deletions

View file

@ -5,6 +5,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add our own cmake module path.
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules/)
if (UNIX)
# Workaround for an old CMake, which does not understand CMAKE_CXX_STANDARD.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
endif()
# Where all the bundled libraries reside?
set(LIBDIR ${CMAKE_CURRENT_SOURCE_DIR}/src/)
# For the bundled boost libraries (boost::nowide)