Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
ced513a9
Commit
ced513a9
authored
1 year ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Export the PYTHON_WHEELHOUS into the config file and cleanup MODULE_DEP_PYTHON_PATH
parent
585dbb90
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1298
Export the PYTHON_WHEELHOUS into the config file and cleanup MODULE_DEP_PYTHON_PATH
Pipeline
#65441
failed
1 year ago
Stage: .pre
Stage: test
Stage: downstream
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/DuneProject.cmake
+3
-1
3 additions, 1 deletion
cmake/modules/DuneProject.cmake
cmake/modules/DunePythonVirtualenv.cmake
+2
-3
2 additions, 3 deletions
cmake/modules/DunePythonVirtualenv.cmake
with
5 additions
and
4 deletions
cmake/modules/DuneProject.cmake
+
3
−
1
View file @
ced513a9
...
...
@@ -212,6 +212,7 @@ set(${ProjectName}_CXX_FLAGS_RELWITHDEBINFO \"${CMAKE_CXX_FLAGS_RELWITHDEBINFO}\
set(
${
ProjectName
}
_DEPENDS
\"
@
${
ProjectName
}
_DEPENDS@
\"
)
set(
${
ProjectName
}
_SUGGESTS
\"
@
${
ProjectName
}
_SUGGESTS@
\"
)
set(
${
ProjectName
}
_MODULE_PATH
\"
@PACKAGE_DUNE_INSTALL_MODULEDIR@
\"
)
set(
${
ProjectName
}
_PYTHON_WHEELHOUSE
\"
@PACKAGE_DUNE_PYTHON_WHEELHOUSE@
\"
)
set(
${
ProjectName
}
_LIBRARIES
\"
@
${
ProjectName
}
_INTERFACE_LIBRARIES@
\"
)
set(
${
ProjectName
}
_HASPYTHON @DUNE_MODULE_HASPYTHON@)
set(
${
ProjectName
}
_PYTHONREQUIRES
\"
@DUNE_MODULE_PYTHONREQUIRES@
\"
)
...
...
@@ -258,7 +259,7 @@ endif()")
configure_package_config_file
(
${
CONFIG_SOURCE_FILE
}
${
PROJECT_BINARY_DIR
}
/cmake/pkg/
${
ProjectName
}
-config.cmake
INSTALL_DESTINATION
${
DUNE_INSTALL_LIBDIR
}
/cmake/
${
ProjectName
}
PATH_VARS CMAKE_INSTALL_DATAROOTDIR DUNE_INSTALL_MODULEDIR CMAKE_INSTALL_INCLUDEDIR
PATH_VARS CMAKE_INSTALL_DATAROOTDIR DUNE_INSTALL_MODULEDIR CMAKE_INSTALL_INCLUDEDIR
DUNE_PYTHON_WHEELHOUSE
DOXYSTYLE_DIR SCRIPT_DIR
)
...
...
@@ -268,6 +269,7 @@ endif()")
set
(
PACKAGE_DOXYSTYLE_DIR
${
PROJECT_SOURCE_DIR
}
/doc/doxygen
)
set
(
PACKAGE_SCRIPT_DIR
${
PROJECT_SOURCE_DIR
}
/cmake/scripts
)
set
(
PACKAGE_DUNE_INSTALL_MODULEDIR
${
PROJECT_SOURCE_DIR
}
/cmake/modules
)
set
(
PACKAGE_DUNE_PYTHON_WHEELHOUSE
${
PROJECT_BINARY_DIR
}
/python
)
set
(
PACKAGE_PREFIX_DIR
${
PROJECT_BINARY_DIR
}
)
set
(
PACKAGE_INIT
"# Set prefix to source dir
set(PACKAGE_PREFIX_DIR
${
PROJECT_SOURCE_DIR
}
)
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/DunePythonVirtualenv.cmake
+
2
−
3
View file @
ced513a9
...
...
@@ -325,10 +325,9 @@ else()
if
(
UNIX
)
# create list with python module paths
set
(
BUILDDIR_PYTHON
"$ENV{BUILDDIR}/python"
)
foreach
(
mod
${
ALL_DEPENDENCIES
}
)
if
(
NOT
${${
mod
}
_
INCLUDE_DIRS
}
STREQUAL
""
)
set
(
MODULE_DEP_PYTHON_PATH
"
${
MODULE_DEP_PYTHON_PATH
}
\n
${${
mod
}
_
INCLUDE_DIRS
}
/
${
BUILDDIR_PYTHON
}
"
)
if
(
NOT
"_
${${
mod
}
_
PYTHON_WHEELHOUSE
}
_"
STREQUAL
"
__
"
)
set
(
MODULE_DEP_PYTHON_PATH
"
${
MODULE_DEP_PYTHON_PATH
}
\n
${${
mod
}
_
PYTHON_WHEELHOUSE
}
"
)
endif
()
endforeach
()
...
...
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