Use COMPILE_FLAGS instead of add_compile_options

The latter came with CMake 2.8.12, and CentOS comes with 2.8.11, so we
need to use a more compatible method. Also bump the minimum required
version now that it is properly known.
This commit is contained in:
Andrew Schwartzmeyer 2016-06-20 12:38:11 -07:00
parent 01b1b13344
commit 0cdc7cfc7e

View file

@ -1,7 +1,8 @@
cmake_minimum_required(VERSION 2.8.4)
cmake_minimum_required(VERSION 2.8.11)
project(PSL-NATIVE)
add_compile_options(-std=c++11 -Wall -Werror)
# Can't use add_compile_options with 2.8.11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror")
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/../powershell")
# test in BUILD_DIR