Skip to content
Snippets Groups Projects
Commit ae306961 authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

external: Add dev mode for xpu to use local version.

parent 9db9c6aa
No related branches found
No related tags found
1 merge request!1158external: Add dev mode for xpu to use local version.
Pipeline #22278 failed
...@@ -46,16 +46,25 @@ if(DOWNLOAD_EXTERNALS) ...@@ -46,16 +46,25 @@ if(DOWNLOAD_EXTERNALS)
set(KF_DEPENDS_ON "") set(KF_DEPENDS_ON "")
endif() endif()
download_project_if_needed(PROJECT xpu
GIT_REPOSITORY "https://github.com/fweig/xpu.git" option(CBM_XPU_DEV "Use the development version of xpu." OFF)
GIT_TAG "dd7d1d7e4b4d71079b9cfadbd662a264288308b0" # v0.7.6
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/xpu if (NOT ${CBM_XPU_DEV})
CONFIGURE_COMMAND "" download_project_if_needed(PROJECT xpu
BUILD_COMMAND "" GIT_REPOSITORY "https://github.com/fweig/xpu.git"
INSTALL_COMMAND "" GIT_TAG "dd7d1d7e4b4d71079b9cfadbd662a264288308b0" # v0.7.6
) SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/xpu
Add_Subdirectory(xpu) CONFIGURE_COMMAND ""
Set(XPU_INCLUDE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/xpu/src PARENT_SCOPE) 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) Include(InstallKFParticle.cmake)
...@@ -70,7 +79,7 @@ if(DOWNLOAD_EXTERNALS) ...@@ -70,7 +79,7 @@ if(DOWNLOAD_EXTERNALS)
Include(InstallYamlCpp.cmake) Include(InstallYamlCpp.cmake)
Include(InstallBBA.cmake) Include(InstallBBA.cmake)
else() else()
# Define targets which are needed by CbmRoot but are not available # Define targets which are needed by CbmRoot but are not available
# whithout the external packages # whithout the external packages
...@@ -97,7 +106,7 @@ else() ...@@ -97,7 +106,7 @@ else()
add_library(bba::library STATIC IMPORTED GLOBAL) add_library(bba::library STATIC IMPORTED GLOBAL)
set_target_properties(bba::library PROPERTIES set_target_properties(bba::library PROPERTIES
IMPORTED_LOCATION bba::library-NOTFOUND IMPORTED_LOCATION bba::library-NOTFOUND
) )
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib") set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib")
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin") set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment