From b41580ffd95500cbacb97845a89e5c6a0849d4fb Mon Sep 17 00:00:00 2001 From: Thibault Hallouin <thibault.hallouin@inrae.fr> Date: Fri, 9 Dec 2022 17:07:34 +0100 Subject: [PATCH] add flag for big object for MSVC compiler --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ed32f2..b261b60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,14 @@ target_link_libraries( xtensor ) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + target_compile_options( + evalhyd + PRIVATE + "/bigobj" + ) +endif() + target_compile_features( evalhyd PUBLIC -- GitLab