Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
mlz
BornAgain
Commits
e6b9131e
Commit
e6b9131e
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
Disentangle errors in find_package(Python3 COMPONENTS Interpreter Development NumPy)
parent
d70534d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/BornAgain/Dependences.cmake
+13
-6
13 additions, 6 deletions
cmake/BornAgain/Dependences.cmake
with
13 additions
and
6 deletions
cmake/BornAgain/Dependences.cmake
+
13
−
6
View file @
e6b9131e
...
@@ -73,7 +73,10 @@ endif()
...
@@ -73,7 +73,10 @@ endif()
if
(
BORNAGAIN_PYTHON OR BORNAGAIN_GUI
)
if
(
BORNAGAIN_PYTHON OR BORNAGAIN_GUI
)
find_package
(
Python3 COMPONENTS Interpreter Development NumPy
)
find_package
(
Python3
)
if
(
NOT Python3_FOUND
)
message
(
FATAL_ERROR
"Python3 not found."
)
endif
()
message
(
STATUS
" Python3_VERSION :
${
Python3_VERSION
}
"
)
message
(
STATUS
" Python3_VERSION :
${
Python3_VERSION
}
"
)
message
(
STATUS
" Python3_INTERPRETER_ID :
${
Python3_INTERPRETER_ID
}
"
)
message
(
STATUS
" Python3_INTERPRETER_ID :
${
Python3_INTERPRETER_ID
}
"
)
...
@@ -83,20 +86,24 @@ if(BORNAGAIN_PYTHON OR BORNAGAIN_GUI)
...
@@ -83,20 +86,24 @@ if(BORNAGAIN_PYTHON OR BORNAGAIN_GUI)
message
(
STATUS
" Python3_INCLUDE_DIRS :
${
Python3_INCLUDE_DIRS
}
"
)
message
(
STATUS
" Python3_INCLUDE_DIRS :
${
Python3_INCLUDE_DIRS
}
"
)
message
(
STATUS
" Python3_LIBRARIES :
${
Python3_LIBRARIES
}
"
)
message
(
STATUS
" Python3_LIBRARIES :
${
Python3_LIBRARIES
}
"
)
message
(
STATUS
" Python3_LIBRARY_DIRS :
${
Python3_LIBRARY_DIRS
}
"
)
message
(
STATUS
" Python3_LIBRARY_DIRS :
${
Python3_LIBRARY_DIRS
}
"
)
message
(
STATUS
" Python3_NumPy_VERSION :
${
Python3_NumPy_VERSION
}
"
)
message
(
STATUS
" Python3_NumPy_INCLUDE_DIRS :
${
Python3_NumPy_INCLUDE_DIRS
}
"
)
find_package
(
Python3 COMPONENTS Interpreter
)
if
(
NOT Python3_FOUND
)
if
(
NOT Python3_FOUND
)
message
(
FATAL_ERROR
"
No
Python
requested components
."
)
message
(
FATAL_ERROR
"Python
3 interpreter not found
."
)
endif
()
endif
()
find_package
(
Python3 COMPONENTS Interpreter Development
)
if
(
NOT Python3_Development_FOUND
)
if
(
NOT Python3_Development_FOUND
)
message
(
FATAL_ERROR
"No Python.h has been found."
)
message
(
FATAL_ERROR
"Python.h not found. Probably you need to install package libpython3-dev (or similar)."
)
endif
()
endif
()
find_package
(
Python3 COMPONENTS Interpreter Development NumPy
)
if
(
NOT Python3_NumPy_FOUND
)
if
(
NOT Python3_NumPy_FOUND
)
message
(
FATAL_ERROR
"
Numpy was
not found."
)
message
(
FATAL_ERROR
"
Python3-NumPy
not found."
)
endif
()
endif
()
message
(
STATUS
" Python3_NumPy_VERSION :
${
Python3_NumPy_VERSION
}
"
)
message
(
STATUS
" Python3_NumPy_INCLUDE_DIRS :
${
Python3_NumPy_INCLUDE_DIRS
}
"
)
endif
()
endif
()
...
...
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