File: 0014-cmake-Search-for-OpenMP-from-the-package-configurati.patch

package info (click to toggle)
opm-common 2025.10%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 96,920 kB
  • sloc: cpp: 291,772; python: 3,609; sh: 198; xml: 174; pascal: 136; makefile: 12
file content (21 lines) | stat: -rw-r--r-- 644 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Markus Blatt <markus@dr-blatt.de>
Date: Wed, 16 Apr 2025 09:27:44 +0200
Subject: [cmake] Search for OpenMP from the package configuration file

We add target OpenMP::OpenMP_CXX to the linker line. Hence we always need
to search for it.
---
 opm-common-prereqs.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/opm-common-prereqs.cmake b/opm-common-prereqs.cmake
index 3d8cdfe..ea130be 100644
--- a/opm-common-prereqs.cmake
+++ b/opm-common-prereqs.cmake
@@ -30,5 +30,6 @@ list(APPEND opm-common_DEPS
       # as the embedded one.
       "fmt 8.0"
       "QuadMath"
+      "OpenMP COMPONENTS CXX"
 )
 find_package_deps(opm-common)