From 68a05942fa785aeb30ea0040688023a642910252 Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Tue, 7 Feb 2017 23:42:43 +0300 Subject: [PATCH] Unix section for sample --- sample/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sample/CMakeLists.txt b/sample/CMakeLists.txt index ab1c075..f866697 100644 --- a/sample/CMakeLists.txt +++ b/sample/CMakeLists.txt @@ -14,7 +14,9 @@ include_directories( ) link_directories(${CMAKE_SOURCE_DIR}/../bin) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") +if(UNIX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") +endif(UNIX) add_executable(${PROJECT_NAME} ${SOURCES})