Commit 5e36b9b9 authored by PRUVOST Florent's avatar PRUVOST Florent

lapacke depends on tmg

parent 834f580c
......@@ -342,6 +342,27 @@ if(NOT CHAMELEON_SIMULATION)
message(FATAL_ERROR "A CBLAS library is required but has not been found")
endif()
# CHAMELEON depends on TMG
#-------------------------
if (CHAMELEON_ENABLE_TESTING OR CHAMELEON_ENABLE_TIMING)
find_package(TMG REQUIRED)
if (TMG_INCLUDE_DIRS_DEP)
include_directories(${TMG_INCLUDE_DIRS_DEP})
endif()
if(TMG_CFLAGS_OTHER_DEP)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TMG_CFLAGS_OTHER_DEP}")
endif()
if(TMG_LDFLAGS_OTHER_DEP)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TMG_LDFLAGS_OTHER_DEP}")
endif()
if(TMG_LIBRARY_DIRS_DEP)
list(APPEND CMAKE_INSTALL_RPATH "${TMG_LIBRARY_DIRS_DEP}")
endif()
if (TMG_LIBRARIES_DEP)
list(INSERT CHAMELEON_DEP 0 ${TMG_LIBRARIES_DEP})
endif()
endif()
# CHAMELEON depends on LAPACKE
#-----------------------------
find_package(LAPACKE REQUIRED)
......@@ -378,27 +399,6 @@ if(NOT CHAMELEON_SIMULATION)
message(FATAL_ERROR "A LAPACKE library is required but has not been found")
endif()
# CHAMELEON depends on TMG
#-------------------------
if (CHAMELEON_ENABLE_TESTING OR CHAMELEON_ENABLE_TIMING)
find_package(TMG REQUIRED)
if (TMG_INCLUDE_DIRS_DEP)
include_directories(${TMG_INCLUDE_DIRS_DEP})
endif()
if(TMG_CFLAGS_OTHER_DEP)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TMG_CFLAGS_OTHER_DEP}")
endif()
if(TMG_LDFLAGS_OTHER_DEP)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TMG_LDFLAGS_OTHER_DEP}")
endif()
if(TMG_LIBRARY_DIRS_DEP)
list(APPEND CMAKE_INSTALL_RPATH "${TMG_LIBRARY_DIRS_DEP}")
endif()
if (TMG_LIBRARIES_DEP)
list(INSERT CHAMELEON_DEP 0 ${TMG_LIBRARIES_DEP})
endif()
endif()
# CHAMELEON depends on CUDA/CUBLAS
#----------------------------------
if (CHAMELEON_USE_CUDA)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment