diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e5e9e8e..a1f0648f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -265,7 +265,8 @@ else() set(CSERIALMPI "#define PSB_SERIAL_MPI") endif() - +add_compile_options(-O3) +add_compile_options($<$:-frecursive>) if(MPI_FOUND) execute_process(COMMAND ${MPIEXEC} --version @@ -350,7 +351,7 @@ target_link_libraries(amgprec_CPP stdc++ ${MPI_CXX_LIBRARIES}) #TODO check actual libraries needed -add_library(amgprec ${amgprec_source_files} $ $) +add_library(amgprec ${amgprec_source_files} $ $ ) set_target_properties(amgprec PROPERTIES @@ -391,14 +392,14 @@ foreach(path IN LISTS amgcbind_header_C_files) endforeach() -add_library(amgcbind_C OBJECT ${amgprec_source_C_files}) +add_library(amgcbind_C OBJECT ${amgcbind_source_C_files}) target_link_libraries(amgcbind_C #PUBLIC ${LAPACK_LINKER_FLAGS} ${LAPACK_LIBRARIES} ${LAPACK95_LIBRARIES} #PUBLIC ${BLAS_LINKER_FLAGS} ${BLAS_LIBRARIES} ${BLAS95_LIBRARIES} psblas::util psblas::linsolve psblas::prec psblas::ext psblas::cbind psblas::base) #TODO check actual libraries needed -add_library(amgcbind ${amgprec_source_files} $) +add_library(amgcbind ${amgcbind_source_files} $) set_target_properties(amgcbind PROPERTIES