Skip to content
Snippets Groups Projects
Verified Commit a236540e authored by Tobias Triffterer's avatar Tobias Triffterer :house_with_garden:
Browse files

Fix Building ROOT

The check if the compilation results from ROOT exist run during cmake
and not make, so in a fresh build directory it will always fail.

This removes these unfulfillable checks and creates the required
directories so the targets can be created.
parent 6c81109f
No related branches found
No related tags found
No related merge requests found
Pipeline #2944 passed with stage
in 50 seconds
......@@ -29,10 +29,6 @@ function(AddRootLibraryTarget)
endif (NOT DEFINED ARLT_LIBNAME OR "${ARLT_LIBNAME}" EQUAL "")
set(LIBNAME "${ARLT_LIBNAME}")
if (NOT EXISTS "${PROJECT_BINARY_DIR}/root_install/lib/lib${LIBNAME}.so.${ROOT_MAJOR_VERSION}.${ROOT_MINOR_VERSION}.${ROOT_PATCH_VERSION}")
message(FATAL_ERROR "Cannot find ROOT library ${LIBNAME} at ${PROJECT_BINARY_DIR}/root_install/lib/lib${LIBNAME}.so.${ROOT_MAJOR_VERSION}.${ROOT_MINOR_VERSION}.${ROOT_PATCH_VERSION}")
endif (NOT EXISTS "${PROJECT_BINARY_DIR}/root_install/lib/lib${LIBNAME}.so.${ROOT_MAJOR_VERSION}.${ROOT_MINOR_VERSION}.${ROOT_PATCH_VERSION}")
add_library(ROOT::${LIBNAME} SHARED IMPORTED)
set_target_properties(ROOT::${LIBNAME} PROPERTIES
INTERFACE_COMPILE_FEATURES "cxx_std_${CMAKE_CXX_STANDARD}"
......@@ -57,6 +53,10 @@ endfunction(AddRootLibraryTarget LIBNAME)
include(ExternalProject)
file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/root_build")
file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/root_install/include")
file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/root_install/lib")
ExternalProject_Add(
ROOTexternalProject
SOURCE_DIR "${PROJECT_SOURCE_DIR}/submodules/root"
......
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