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 ()