-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch dakota source to remove embedded python
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/cmake/DakotaFindPython.cmake b/cmake/DakotaFindPython.cmake | ||
index 43f9fb9..f4c4e28 100644 | ||
--- a/cmake/DakotaFindPython.cmake | ||
+++ b/cmake/DakotaFindPython.cmake | ||
@@ -8,7 +8,7 @@ macro(dakota_find_python) | ||
if(DAKOTA_PYTHON_DIRECT_INTERFACE OR DAKOTA_PYTHON_SURROGATES OR | ||
DAKOTA_PYTHON_WRAPPER OR DAKOTA_PYBIND11) | ||
message(STATUS "Dakota enabling Python (Development) for direct or surrogate interface") | ||
- list(APPEND dakota_python_components Development) | ||
+ list(APPEND dakota_python_components Development.Module) | ||
|
||
if (DAKOTA_PYTHON_DIRECT_INTERFACE_NUMPY) | ||
message(STATUS "Dakota enabling Python direct interface with NumPy") | ||
@@ -18,6 +18,7 @@ macro(dakota_find_python) | ||
endif() | ||
|
||
find_package(Python REQUIRED ${dakota_python_components}) | ||
+ # find_package(Python COMPONENTS ${dakota_python_components} REQUIRED) | ||
|
||
# pybind11, C3, Acro, etc., use older CMake FindPythonInterp, so we | ||
# coerce it to use same as Dakota; more complex situations may |