Use C++ 11 standard (#83)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 17 Apr 2018 07:48:36 +0000 (16:48 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 17 Apr 2018 07:48:36 +0000 (16:48 +0900)
This commit sets C++ 11 as the default standard for nncc project.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
CMakeLists.txt

index 1b8c14d..abbdb4e 100644 (file)
@@ -4,6 +4,12 @@ project(nncc)
 
 enable_testing()
 
+if(CMAKE_VERSION VERSION_LESS 3.1.0)
+  set(CMAKE_CXX_FLAGS "-std=c++11")
+else(CMAKE_VERSION VERSION_LESS 3.1.0)
+  set(CMAKE_CXX_STANDARD 11)
+endif(CMAKE_VERSION VERSION_LESS 3.1.0)
+
 ###
 ### Configuration
 ###