From: Eduardo Enrique Davila Serrano Date: Thu, 1 Feb 2024 15:56:19 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f4a4557d35c270ce5b52b7b8af4e070e910ba437;p=crea.git Clean code --- diff --git a/cmake/CREAMacro_FindAndUseLibraries.cmake b/cmake/CREAMacro_FindAndUseLibraries.cmake index 5a37aff..eded325 100644 --- a/cmake/CREAMacro_FindAndUseLibraries.cmake +++ b/cmake/CREAMacro_FindAndUseLibraries.cmake @@ -88,18 +88,26 @@ if(APPLE ) endif() endif() + +message("------------ EED OPENMP Flag 1") # EED 2024-16-01 -# find_package( OpenMP REQUIRED ) + find_package( OpenMP REQUIRED ) # find_package( OpenMP ) # find_package(OpenMP COMPONENTS CXX) +message("------------ EED OPENMP Flag 2") if (OPENMP_FOUND) + + message("------------ EED OPENMP yesssssssssss") # include_directories("${OPENMP_INCLUDES}") link_directories( /opt/local/lib/libomp ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") # set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") +ELSE(OPENMP_FOUND) + message("------------ EED OPENMP noooooooooo") + endif(OPENMP_FOUND)