From c9aa2c38fc68b54a99ed2b079772de097aa9ab10 Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Mon, 2 Jan 2023 10:26:41 +0100
Subject: [PATCH] bring back "big object"compiler option for MSVC

---
 CMakeLists.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59c8cac..bc1163b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,6 +45,14 @@ target_link_libraries(
                 xtensor
 )
 
+if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+    target_compile_options(
+            evalhyd
+            INTERFACE
+                "/bigobj"
+    )
+endif()
+
 target_compile_features(
         evalhyd
         INTERFACE
-- 
GitLab