diff --git a/src/classes/CMakeLists.txt b/src/classes/CMakeLists.txt index ec775c9d..55293958 100644 --- a/src/classes/CMakeLists.txt +++ b/src/classes/CMakeLists.txt @@ -103,6 +103,11 @@ set_target_properties(PUserFcnBase target_include_directories( PUserFcnBase BEFORE PRIVATE $ ) + +#--- 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})