-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# CMake support layer for SuiteSparse | ||
# | ||
# Copyright 2016-2022 Sergiu Deitsch <[email protected]> | ||
# Copyright 2023 Sergiu Deitsch <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -123,7 +123,7 @@ find_package (BLAS REQUIRED) | |
find_package (CUDAToolkit) | ||
find_package (LAPACK REQUIRED) | ||
find_package (METIS 5.0) | ||
find_package (OpenMP COMPONENTS C) | ||
find_package (OpenMP) | ||
find_package (TBB 4.2...<2021.4 NO_MODULE) | ||
|
||
function (check_options) | ||
|
@@ -734,9 +734,12 @@ if (WITH_CHOLMOD) | |
|
||
if (OpenMP_FOUND) | ||
target_compile_definitions (cholmod PRIVATE HAVE_OPENMP) | ||
target_link_libraries (cholmod PRIVATE OpenMP::OpenMP_C) | ||
target_link_libraries (cholmod PRIVATE | ||
$<$<LINK_LANGUAGE:C>:OpenMP::OpenMP_C> | ||
$<$<LINK_LANGUAGE:CXX>:OpenMP::OpenMP_CXX> | ||
) | ||
|
||
set (OpenMP_DEPENDENCY "find_dependency (OpenMP ${OpenMP_C_VERSION} COMPONENTS C)") | ||
set (OpenMP_DEPENDENCY "find_dependency (OpenMP ${OpenMP_C_VERSION})") | ||
endif (OpenMP_FOUND) | ||
|
||
if (HAVE_FEENABLEEXCEPT) | ||
|