From c2765ca94df923a612611fcf0a4a2cca0610448a Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Wed, 14 Jun 2017 11:11:34 +0300 Subject: [PATCH] update #44: set target public compile properties --- easy_profiler_core/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/easy_profiler_core/CMakeLists.txt b/easy_profiler_core/CMakeLists.txt index 33968c5..4c5ad5d 100644 --- a/easy_profiler_core/CMakeLists.txt +++ b/easy_profiler_core/CMakeLists.txt @@ -134,11 +134,11 @@ endif () if (APPLE) target_compile_options(easy_profiler PUBLIC -std=gnu++11) else () - if (CMAKE_VERSION VERSION_LESS "3.1") - if (NOT MSVC) - target_compile_options(easy_profiler PUBLIC $<$:-std=gnu++11>) - endif () - else () + if (NOT MSVC) + target_compile_options(easy_profiler PUBLIC $<$:-std=gnu++11>) + endif () + + if (NOT CMAKE_VERSION VERSION_LESS "3.1") set_target_properties(easy_profiler PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON) endif () endif ()