Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Sep 10, 2023
1 parent 0ba0726 commit 35bab56
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions CMakeLists.txt
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.
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 35bab56

Please sign in to comment.