summaryrefslogtreecommitdiff
path: root/science/py-HepMC3/files/patch-CMakeLists.txt
blob: d628b41c74dff86ac7cf423bd7c838e24903d46f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- CMakeLists.txt.orig	2024-06-02 16:17:02 UTC
+++ CMakeLists.txt
@@ -6,6 +6,8 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
 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 (RERUN_BINDER)
@@ -206,7 +208,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)