cmake: got rid of target_compile_options which are better controlled by the build type.
This commit is contained in:
@ -110,10 +110,6 @@ target_include_directories(
|
||||
PUserFcnBase BEFORE PRIVATE $<BUILD_INTERFACE:${MUSRFIT_INC}>
|
||||
)
|
||||
|
||||
#--- add compile options for optimization -------------------------------------
|
||||
target_compile_options(PMusr PUBLIC -O2)
|
||||
target_compile_options(PUserFcnBase PUBLIC -O2)
|
||||
|
||||
#--- add OpenMP compile options if needed -------------------------------------
|
||||
if (OpenMP_FOUND)
|
||||
target_compile_options(PMusr PUBLIC ${OpenMP_CXX_FLAGS})
|
||||
|
@ -25,10 +25,3 @@ target_compile_definitions(
|
||||
common PRIVATE ${COMP_DEF}
|
||||
)
|
||||
|
||||
set(COMP_OPT "-O3")
|
||||
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
|
||||
set(COMP_OPT ${COMP_OPT} "-ffast-math")
|
||||
set(COMP_OPT ${COMP_OPT} "-fPIC")
|
||||
target_compile_options(
|
||||
common PRIVATE ${COMP_OPT}
|
||||
)
|
||||
|
@ -23,10 +23,3 @@ target_compile_definitions(
|
||||
cuhre PRIVATE ${COMP_DEF}
|
||||
)
|
||||
|
||||
set(COMP_OPT "-O3")
|
||||
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
|
||||
set(COMP_OPT ${COMP_OPT} "-ffast-math")
|
||||
set(COMP_OPT ${COMP_OPT} "-fPIC")
|
||||
target_compile_options(
|
||||
cuhre PRIVATE ${COMP_OPT}
|
||||
)
|
||||
|
@ -23,10 +23,4 @@ target_compile_definitions(
|
||||
divonne PRIVATE ${COMP_DEF}
|
||||
)
|
||||
|
||||
set(COMP_OPT "-O3")
|
||||
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
|
||||
set(COMP_OPT ${COMP_OPT} "-ffast-math")
|
||||
set(COMP_OPT ${COMP_OPT} "-fPIC")
|
||||
target_compile_options(
|
||||
divonne PRIVATE ${COMP_OPT}
|
||||
)
|
||||
|
||||
|
@ -23,10 +23,3 @@ target_compile_definitions(
|
||||
suave PRIVATE ${COMP_DEF}
|
||||
)
|
||||
|
||||
set(COMP_OPT "-O3")
|
||||
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
|
||||
set(COMP_OPT ${COMP_OPT} "-ffast-math")
|
||||
set(COMP_OPT ${COMP_OPT} "-fPIC")
|
||||
target_compile_options(
|
||||
suave PRIVATE ${COMP_OPT}
|
||||
)
|
||||
|
@ -23,10 +23,3 @@ target_compile_definitions(
|
||||
vegas PRIVATE ${COMP_DEF}
|
||||
)
|
||||
|
||||
set(COMP_OPT "-O3")
|
||||
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
|
||||
set(COMP_OPT ${COMP_OPT} "-ffast-math")
|
||||
set(COMP_OPT ${COMP_OPT} "-fPIC")
|
||||
target_compile_options(
|
||||
vegas PRIVATE ${COMP_OPT}
|
||||
)
|
||||
|
Reference in New Issue
Block a user