From 7db648afecca4d7d78552855f3ac2bc93451bb68 Mon Sep 17 00:00:00 2001 From: Martin Beseda <martinbeseda@seznam.cz> Date: Thu, 13 Sep 2018 15:48:43 +0200 Subject: [PATCH] FIX: Trying to fix Exprtk compilation with MSCV --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bada32e8..89d119d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,8 @@ 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_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS") + add_compile_options("/D _SCL_SECURE_NO_WARNINGS") + add_compile_options("/D_CRT_SECURE_NO_WARNINGS") else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") endif() -- GitLab