Commit 99c52331 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

Merge branch 'bug/c++11CMakeGoodForm' into 'develop'

UPDATED C++11 compliance CMake syntax

See merge request !5
parents 0d051fc4 b174f589
......@@ -34,7 +34,8 @@ camitk_opensource_packaging()
include(camitk/test/CamiTKTestCoverage)
# From now on, CamiTK is C++11 compliant (this flag is needed for early support of C++11 in g++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# All target after this declaration wil be compile with c++11 policy
set(CMAKE_CXX_STANDARD 11)
# Specific to SDK: first compile the SDK (it looks like a CEP but is sooooo special...)
add_subdirectory(sdk)
......
......@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.0)
# Find CamiTK SDK
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
set(CMAKE_CXX_STANDARD 11)
find_package(CamiTK REQUIRED)
include(${CAMITK_USE_FILE})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment