summaryrefslogtreecommitdiff
path: root/science/py-HepMC3/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-04-17 01:46:21 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2023-04-17 01:47:01 -0700
commit0e14eaf98bf2f4ca8b12d3ec033ab9aa349998b4 (patch)
tree7f159d0d9ddf190ebb170eacb8e8a4ac57d61823 /science/py-HepMC3/files/patch-CMakeLists.txt
parentscience/hepmc3: Update 3.2.5 → 3.2.6 (diff)
science/py-HepMC3: New port: Event record for High Energy Physics Monte Carlo generators/simulation
Diffstat (limited to 'science/py-HepMC3/files/patch-CMakeLists.txt')
-rw-r--r--science/py-HepMC3/files/patch-CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/science/py-HepMC3/files/patch-CMakeLists.txt b/science/py-HepMC3/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..83a78212d418
--- /dev/null
+++ b/science/py-HepMC3/files/patch-CMakeLists.txt
@@ -0,0 +1,32 @@
+--- CMakeLists.txt.orig 2023-04-12 14:19:36 UTC
++++ CMakeLists.txt
+@@ -6,6 +6,8 @@ SET_PROPERTY (GLOBAL PROPERTY CMAKE_ROLE "PROJECT")
+ endif()
+ set(CMAKE_VERBOSE_MAKEFILE ON)
+
++include(CheckCXXCompilerFlag)
++
+ option(USE_INSTALLED_HEPMC3 "Use HepMC3 bindings as a standalone package" OFF)
+ option(RERUN_BINDER "Rerun binder" OFF)
+ if (USE_INSTALLED_HEPMC3)
+@@ -314,9 +316,9 @@ if (${ver} STREQUAL 2)
+ unset(_Python2_EXECUTABLE CACHE) # Attempt to make FindPython reenterant
+ unset(_Python2_INCLUDE_DIR CACHE) # Attempt to make FindPython reenterant
+ if (${verminor} STREQUAL X)
+- find_package (Python2 ${ver} COMPONENTS Interpreter Development.Module)
++ find_package (xPython2 ${ver} COMPONENTS Interpreter Development.Module)
+ else()
+- find_package (Python2 ${ver}.${verminor} EXACT COMPONENTS Interpreter Development.Module)
++ find_package (xPython2 ${ver}.${verminor} EXACT COMPONENTS Interpreter Development.Module)
+ endif()
+ if (Python2_VERSION AND Python2_INCLUDE_DIRS AND Python2_EXECUTABLE ) #something is set
+ SET( Python_VERSION ${Python2_VERSION})
+@@ -336,7 +338,7 @@ if (${ver} STREQUAL 3)
+ unset(Python3_FOUND CACHE)
+ unset(Python3_VERSION CACHE)
+ unset(Python3_Interpreter_FOUND CACHE)
+- unset(Python3_EXECUTABLE CACHE)
++ #unset(Python3_EXECUTABLE CACHE)
+ unset(Python3_INCLUDE_DIR CACHE)
+ unset(Python3_INCLUDE_DIRS CACHE)
+ unset(Python3_LIBRARIES CACHE)