diff --git a/src/bin/libint/CMakeLists.txt b/src/bin/libint/CMakeLists.txt index dcacdd5da..f0de9d833 100644 --- a/src/bin/libint/CMakeLists.txt +++ b/src/bin/libint/CMakeLists.txt @@ -89,11 +89,12 @@ message("GMPXX ${GMPXX_INCLUDE} ${GMPXX_LIBRARY}") #else() # set_target_properties(libint_compiler PROPERTIES COMPILE_FLAGS "-std=c99") #endif() -# -#if(MSVC) -# # Increase stack size from 1 MB to 4 MB -# set_target_properties(libint_compiler PROPERTIES LINK_FLAGS "/STACK:4194304") -#endif() + +if(MSVC) + # Increase stack size from 1 MB to 4 MB + set_target_properties(build_libint PROPERTIES LINK_FLAGS "/STACK:4194304") +endif() + # <<< Install >>> diff --git a/src/lib/libint/CMakeLists.txt.export b/src/lib/libint/CMakeLists.txt.export index c282a18db..7ef7591ec 100644 --- a/src/lib/libint/CMakeLists.txt.export +++ b/src/lib/libint/CMakeLists.txt.export @@ -68,8 +68,6 @@ endif() if (MSVC) set(HAVE_POSIX_MEMALIGN 1) # aliased it set(LIBINT2_ALIGN_SIZE "0" CACHE STRING "(LAB) I so don't understand the option handling of ALIGN_SIZE") - # Increase stack size from 1 MB to 4 MB - set_target_properties(libint_compiler PROPERTIES LINK_FLAGS "/STACK:4194304") endif() if (NOT LIBINT2_REALTYPE) @@ -138,6 +136,11 @@ if (BUILD_SHARED OR BUILD_FPIC) set_target_properties(int-obj PROPERTIES POSITION_INDEPENDENT_CODE 1) endif() +if (MSVC) + # Increase stack size from 1 MB to 4 MB + set_target_properties(int-obj PROPERTIES LINK_FLAGS "/STACK:4194304") +endif() + if (BUILD_SHARED) add_library (int-shared SHARED $) target_link_libraries (int-shared INTERFACE Eigen3::Eigen)