Skip to content

Commit

Permalink
win stack in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Sep 10, 2020
1 parent fae8caa commit d5b6ee2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/bin/libint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 >>>

Expand Down
7 changes: 5 additions & 2 deletions src/lib/libint/CMakeLists.txt.export
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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_OBJECTS:int-obj>)
target_link_libraries (int-shared INTERFACE Eigen3::Eigen)
Expand Down

0 comments on commit d5b6ee2

Please sign in to comment.