From bfd623af987abf0ccb719de82ef8ad7d8c2e89ac Mon Sep 17 00:00:00 2001
From: Ian Bell <ian.bell@nist.gov>
Date: Wed, 15 Jun 2022 13:04:36 -0600
Subject: [PATCH] Yet another try to fix heap issues

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83a4c8e..943bc30 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,6 +109,9 @@ if (NOT TEQP_NO_PYTHON)
     pybind11_add_module(teqp "${pybind11_files}")
     target_include_directories(teqp PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/externals/pybind11_json/include")
     target_link_libraries(teqp PRIVATE autodiff PRIVATE teqpinterface)
+    if (MSVC)
+      target_compile_options(teqp PRIVATE "/Zm10")
+    endif()
 endif()
 
 file(GLOB catch_tests_files "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/*.cxx")
-- 
GitLab