-
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.
Merge pull request #23 from ITISFoundation/dakota6210
Switch to dakota 6.21.0
- Loading branch information
Showing
6 changed files
with
30 additions
and
192 deletions.
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
This file was deleted.
Oops, something went wrong.
13 changes: 2 additions & 11 deletions
13
src_patches/find_python.patch → src_patches/findpython.patch
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 |
---|---|---|
@@ -1,22 +1,13 @@ | ||
diff --git a/cmake/DakotaFindPython.cmake b/cmake/DakotaFindPython.cmake | ||
index 9ffa1ca..8edd853 100644 | ||
index 9ffa1ca..d7a2152 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) | ||
+ list(APPEND dakota_python_components Development.Module) | ||
|
||
if (DAKOTA_PYTHON_DIRECT_INTERFACE_LEGACY) | ||
if (DAKOTA_PYTHON_DIRECT_INTERFACE) | ||
@@ -31,7 +31,7 @@ macro(dakota_find_python) | ||
|
||
endif() | ||
|
||
- find_package(Python REQUIRED ${dakota_python_components}) | ||
+ # find_package(Python REQUIRED ${dakota_python_components}) | ||
|
||
if (DAKOTA_PYTHON_DIRECT_INTERFACE_NUMPY) | ||
message(STATUS "NumPy version ${Python_NumPy_VERSION} found at ${Python_NumPy_INCLUDE_DIRS}") |
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/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 1cce3d2..2670950 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -325,11 +325,11 @@ if(DAKOTA_PYTHON_DIRECT_INTERFACE) | ||
# TODO: Use target_definitions | ||
# If not, use Python_LIBRARY_DIRS | ||
|
||
- if(DAKOTA_PYTHON_DIRECT_INTERFACE_LEGACY) | ||
- list(APPEND EXT_TPL_INCDIRS ${Python_INCLUDE_DIRS}) | ||
- add_definitions("-DDAKOTA_PYTHON_LEGACY") | ||
- list(APPEND EXT_TPL_LIBS ${Python_LIBRARIES}) | ||
- endif() | ||
+ # if(DAKOTA_PYTHON_DIRECT_INTERFACE_LEGACY) | ||
+ list(APPEND EXT_TPL_INCDIRS ${Python_INCLUDE_DIRS}) | ||
+ # add_definitions("-DDAKOTA_PYTHON_LEGACY") | ||
+ list(APPEND EXT_TPL_LIBS ${Python_LIBRARIES}) | ||
+ # endif() | ||
# Pybind11 is also included alongside older Python interface | ||
list(APPEND EXT_TPL_INCDIRS ${pybind11_INCLUDE_DIR}) | ||
add_definitions("-DDAKOTA_PYBIND11") |
This file was deleted.
Oops, something went wrong.