Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waLBerla
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Markus Holzer
waLBerla
Commits
18d427d9
Commit
18d427d9
authored
3 years ago
by
Dominik Thoennes
Browse files
Options
Downloads
Patches
Plain Diff
set new policy to not favor most recent python version
parent
f8165e31
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+10
-6
10 additions, 6 deletions
CMakeLists.txt
with
10 additions
and
6 deletions
CMakeLists.txt
+
10
−
6
View file @
18d427d9
...
...
@@ -569,8 +569,17 @@ if ( WALBERLA_CXX_COMPILER_IS_MSVC )
endif
(
)
############################################################################################################################
############################################################################################################################
##
## Python
##
#############################################################################################################################
if
(
WALBERLA_BUILD_WITH_CODEGEN OR WALBERLA_BUILD_WITH_PYTHON
)
cmake_policy
(
SET CMP0094 NEW
)
set
(
Python_FIND_FRAMEWORK LAST
)
find_package
(
Python COMPONENTS Interpreter Development
)
endif
()
############################################################################################################################
##
...
...
@@ -578,8 +587,6 @@ endif ( )
##
#############################################################################################################################
if
(
WALBERLA_BUILD_WITH_CODEGEN
)
set
(
Python_FIND_FRAMEWORK LAST
)
find_package
(
Python COMPONENTS Interpreter Development
)
execute_process
(
COMMAND
${
Python_EXECUTABLE
}
-c
"import lbmpy"
RESULT_VARIABLE LBMPY_FOUND
)
if
(
NOT LBMPY_FOUND EQUAL 0
)
...
...
@@ -608,9 +615,6 @@ endif()
##
#############################################################################################################################
if
(
WALBERLA_BUILD_WITH_PYTHON
)
set
(
Python_FIND_FRAMEWORK LAST
)
find_package
(
Python COMPONENTS Interpreter Development REQUIRED
)
if
(
WALBERLA_CXX_COMPILER_IS_INTEL
)
# Intel C++17 support introduced in 2.6.2 (https://github.com/pybind/pybind11/pull/2729)
set
(
PYBIND11_MINIMUM_VERSION
"2.6.2"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment