Skip to content

Commit

Permalink
Restored old flag checking
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamonDinoia committed Jul 31, 2024
1 parent 405071a commit 4fcf69f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ set(FINUFFT_CXX_FLAGS_RELEASE
-ftree-vectorize
-fimplicit-constexpr
-fcx-limited-range
-O3
/Ox
/fp:contract
/fp:except-
/GF
Expand Down Expand Up @@ -201,16 +203,10 @@ function(set_finufft_options target)
target_compile_options(
${target} PRIVATE $<$<CONFIG:Release,RelWithDebInfo>:${FINUFFT_ARCH_FLAGS}>)
target_compile_options(
${target}
PRIVATE $<$<CONFIG:Release>:${FINUFFT_CXX_FLAGS_RELEASE}>
$<$<AND:$<CONFIG:Release>,$<CXX_COMPILER_ID:GNU>>:-O3>
$<$<AND:$<CONFIG:Release>,$<NOT:$<CXX_COMPILER_ID:GNU>>>:/Ox>)
${target} PRIVATE $<$<CONFIG:Release>:${FINUFFT_CXX_FLAGS_RELEASE}>)
target_compile_options(
${target}
PRIVATE $<$<CONFIG:RelWithDebInfo>:${FINUFFT_CXX_FLAGS_RELWITHDEBINFO}>
$<$<AND:$<CONFIG:RelWithDebInfo>,$<CXX_COMPILER_ID:GNU>>:-O2>
$<$<AND:$<CONFIG:RelWithDebInfo>,$<NOT:$<CXX_COMPILER_ID:GNU>>>:/O2>
)
PRIVATE $<$<CONFIG:RelWithDebInfo>:${FINUFFT_CXX_FLAGS_RELWITHDEBINFO}>>)
target_compile_options(${target}
PRIVATE $<$<CONFIG:Debug>:${FINUFFT_CXX_FLAGS_DEBUG}>)
target_include_directories(
Expand Down

0 comments on commit 4fcf69f

Please sign in to comment.