Commit ce02b5d8 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED C++11 for older cmake version (as in debian old stable)

parent a9f21ef3
......@@ -34,8 +34,13 @@ 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++)
# All target after this declaration wil be compile with c++11 policy
set(CMAKE_CXX_STANDARD 11)
if(${CMAKE_VERSION} VERSION_LESS "3.1.3")
# CMAKE_CXX_STANDARD not available for cmake 3.0.2 (as in debian old stable)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
else()
# All target after this declaration will be compile with c++11 policy
set(CMAKE_CXX_STANDARD 11)
endif()
# Specific to SDK: first compile the SDK (it looks like a CEP but is sooooo special...)
add_subdirectory(sdk)
......
Markdown is supported
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