Skip to content

Commit

Permalink
take 12
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Jan 7, 2024
1 parent b45788d commit e06d007
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/lib/libint/CMakeLists.txt.export
Original file line number Diff line number Diff line change
Expand Up @@ -272,18 +272,12 @@ if (BUILD_STATIC_LIBS)
# MSVC does not include <cmath> constants, unless _USE_MATH_DEFINES is defined.
$<$<BOOL:${MSVC}>:_USE_MATH_DEFINES>
)
#target_compile_options(
# int-static
# PUBLIC
# # Set the exception handling model (allows "throw")
# #$<$<BOOL:${MSVC}>:"/EHsc">
# )
set_target_properties(
target_compile_options(
int-static
PROPERTIES
OUTPUT_NAME "int2"
PUBLIC
# Set the exception handling model (allows "throw")
$<$<BOOL:${MSVC}>:"/EHsc">
)

target_include_directories(
int-static
INTERFACE
Expand All @@ -292,11 +286,14 @@ if (BUILD_STATIC_LIBS)
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include/libint2>
)
set_target_properties(
int-static
PROPERTIES
OUTPUT_NAME "int2"
)


if (MSVC)
# target_compile_definitions(int-static PUBLIC _USE_MATH_DEFINES)
target_compile_options(int-static PUBLIC "/EHsc")
endif()
endif()

# Permanent aliases =============================================================
Expand Down

0 comments on commit e06d007

Please sign in to comment.