]> Creatis software - crea.git/commitdiff
Clean code
authorEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Thu, 1 Feb 2024 15:56:19 +0000 (16:56 +0100)
committerEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Thu, 1 Feb 2024 15:56:19 +0000 (16:56 +0100)
cmake/CREAMacro_FindAndUseLibraries.cmake

index 5a37affdd649f201653a12e12a75cb8b2339d4ba..eded325938f023976ac2605f7a267b89e3b10823 100644 (file)
@@ -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)