Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Computing
cbmroot
Commits
ae306961
Commit
ae306961
authored
1 year ago
by
Felix Weiglhofer
Browse files
Options
Downloads
Patches
Plain Diff
external: Add dev mode for xpu to use local version.
parent
9db9c6aa
No related branches found
No related tags found
1 merge request
!1158
external: Add dev mode for xpu to use local version.
Pipeline
#22278
failed
1 year ago
Stage: documentation
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
external/CMakeLists.txt
+21
-12
21 additions, 12 deletions
external/CMakeLists.txt
with
21 additions
and
12 deletions
external/CMakeLists.txt
+
21
−
12
View file @
ae306961
...
...
@@ -46,16 +46,25 @@ if(DOWNLOAD_EXTERNALS)
set
(
KF_DEPENDS_ON
""
)
endif
()
download_project_if_needed
(
PROJECT xpu
GIT_REPOSITORY
"https://github.com/fweig/xpu.git"
GIT_TAG
"dd7d1d7e4b4d71079b9cfadbd662a264288308b0"
# v0.7.6
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/xpu
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
""
)
Add_Subdirectory
(
xpu
)
Set
(
XPU_INCLUDE_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/xpu/src PARENT_SCOPE
)
option
(
CBM_XPU_DEV
"Use the development version of xpu."
OFF
)
if
(
NOT
${
CBM_XPU_DEV
}
)
download_project_if_needed
(
PROJECT xpu
GIT_REPOSITORY
"https://github.com/fweig/xpu.git"
GIT_TAG
"dd7d1d7e4b4d71079b9cfadbd662a264288308b0"
# v0.7.6
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/xpu
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
""
)
Add_Subdirectory
(
xpu
)
Set
(
XPU_INCLUDE_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/xpu/src PARENT_SCOPE
)
else
()
message
(
WARNING
"xpu DEVELOPMENT MODE: Using local xpu build from external/xpu-dev"
)
add_subdirectory
(
xpu-dev
)
Set
(
XPU_INCLUDE_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/xpu-dev/src PARENT_SCOPE
)
endif
()
Include
(
InstallKFParticle.cmake
)
...
...
@@ -70,7 +79,7 @@ if(DOWNLOAD_EXTERNALS)
Include
(
InstallYamlCpp.cmake
)
Include
(
InstallBBA.cmake
)
else
()
# Define targets which are needed by CbmRoot but are not available
# whithout the external packages
...
...
@@ -97,7 +106,7 @@ else()
add_library
(
bba::library STATIC IMPORTED GLOBAL
)
set_target_properties
(
bba::library PROPERTIES
IMPORTED_LOCATION bba::library-NOTFOUND
)
)
set
(
LIBRARY_OUTPUT_PATH
"
${
CMAKE_BINARY_DIR
}
/lib"
)
set
(
EXECUTABLE_OUTPUT_PATH
"
${
CMAKE_BINARY_DIR
}
/bin"
)
...
...
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