Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 25737d06 authored by PRUVOST Florent's avatar PRUVOST Florent Committed by Mathieu Faverge
Browse files

Threads target may be required and thus exported

parent 542d6fc9
No related branches found
No related tags found
No related merge requests found
......@@ -778,6 +778,12 @@ endif()
# Export targets #
##################
# Threads::Threads may be a dependency of BLAS/LAPACK and CUDA
# the target may be required for cmake users linking with CHAMELEONconfig.cmake
if (TARGET Threads::Threads)
morse_export_imported_target(Threads Threads threads chameleon)
endif()
# see https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html
include(CMakePackageConfigHelpers)
......
......@@ -11,6 +11,9 @@ check_required_components(CHAMELEON)
# dependencies of CHAMELEON
include("${CMAKE_CURRENT_LIST_DIR}/mTargets.cmake")
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/threadsTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/threadsTargets.cmake")
endif()
if (NOT @CHAMELEON_SIMULATION@)
include("${CMAKE_CURRENT_LIST_DIR}/cblasTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/lapackeTargets.cmake")
......
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