Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 560b8841 authored by SYLVAND Guillaume's avatar SYLVAND Guillaume
Browse files

Cmake: detect composyx before all others libs

parent 967ccf22
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,23 @@ if(MKL_FOUND) ...@@ -92,6 +92,23 @@ if(MKL_FOUND)
set(CBLAS_INCLUDE_DIR ${MKL_INCLUDE_DIRS}) set(CBLAS_INCLUDE_DIR ${MKL_INCLUDE_DIRS})
endif() endif()
# ========================
# COMPOSYX
# ========================
# compile your example
if ( NOT TARGET COMPOSYX::composyx )
find_package(composyx)
if(composyx_FOUND)
message(STATUS "Found composyx")
set(HAVE_COMPOSYX TRUE)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
else()
set(HAVE_COMPOSYX TRUE)
message(STATUS "Found composyx")
endif()
# ======================== # ========================
# CHAMELEON # CHAMELEON
# (Look for it before hmat so it defines h-mat first if included) # (Look for it before hmat so it defines h-mat first if included)
...@@ -100,9 +117,11 @@ if ( NOT TARGET CHAMELEON::chameleon ) ...@@ -100,9 +117,11 @@ if ( NOT TARGET CHAMELEON::chameleon )
find_package(CHAMELEON) find_package(CHAMELEON)
if(CHAMELEON_FOUND) if(CHAMELEON_FOUND)
set(HAVE_CHAMELEON TRUE) set(HAVE_CHAMELEON TRUE)
message(STATUS "Found Chameleon")
endif() endif()
else() else()
set(HAVE_CHAMELEON TRUE) set(HAVE_CHAMELEON TRUE)
message(STATUS "Found Chameleon")
endif() endif()
# ======================== # ========================
...@@ -133,22 +152,6 @@ if(HLIBPRO_FOUND) ...@@ -133,22 +152,6 @@ if(HLIBPRO_FOUND)
include_directories(${HLIBPRO_INCLUDE_DIRS}) include_directories(${HLIBPRO_INCLUDE_DIRS})
endif(HLIBPRO_FOUND) endif(HLIBPRO_FOUND)
# ========================
# COMPOSYX
# ========================
# compile your example
if ( NOT TARGET COMPOSYX::composyx )
find_package(composyx)
if(composyx_FOUND)
message(STATUS "Found composyx")
set(HAVE_COMPOSYX TRUE)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
else()
set(HAVE_COMPOSYX TRUE)
endif()
# ======================== # ========================
# Lib M # Lib M
# ======================== # ========================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment