From c9cb63ca1e1ecb84af9a939414dee9e02ddf21ee Mon Sep 17 00:00:00 2001 From: Neargye Date: Sun, 2 Sep 2018 00:49:15 +0500 Subject: [PATCH] update build --- test/CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e872645..baad6c4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -52,15 +52,6 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") endif() endif() -function(enable_msvs_guideline_checker target) - if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") - set_target_properties(${target} PROPERTIES - VS_GLOBAL_EnableCppCoreCheck true - VS_GLOBAL_CodeAnalysisRuleSet CppCoreCheckRules.ruleset - VS_GLOBAL_RunCodeAnalysis true) - endif() -endfunction() - function(make_target target std) add_executable(${target} ${SOURCES}) target_compile_options(${target} PRIVATE ${OPTIONS}) @@ -91,7 +82,6 @@ if(HAS_CPP17_FLAG) set(std17 c++1z) endif() make_target(nameof-cpp17.t ${std17}) - enable_msvs_guideline_checker(nameof-cpp17.t) add_test(NAME test-cpp17 COMMAND nameof-cpp17.t) endif()