From ec0440d5fee49cb27f825bc0262e0c1e7211c258 Mon Sep 17 00:00:00 2001 From: Martin Beseda <martinbeseda@seznam.cz> Date: Thu, 13 Sep 2018 15:28:18 +0200 Subject: [PATCH] FIX: Trying to fix Exprtk compilation with MSCV --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b8d4676..855e093e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -xHost" ) elseif( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0 /bigobj") - add_compile_options("-D_ITERATOR_DEBUG_LEVEL=0") + add_compile_options("-D_SCL_SECURE_NO_WARNINGS") else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") endif() -- GitLab