cmake: got rid of target_compile_options which are better controlled by the build type.

This commit is contained in:
2018-06-06 12:59:18 +02:00
parent 1c901f73ba
commit a756a2def4
6 changed files with 1 additions and 39 deletions

View File

@ -104,10 +104,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})