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 1cd25fcd40
commit db1e4dc570
6 changed files with 1 additions and 39 deletions

View File

@@ -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})