Skip to content
Snippets Groups Projects
Commit 4ca2d650 authored by Administrator's avatar Administrator Committed by Volker Friese
Browse files

Remove leftovers which were needed for ROOT 5

parent 0ed706c1
No related branches found
No related tags found
1 merge request!800Revise the build environment (Move to C++17)
...@@ -95,18 +95,15 @@ Macro(ROOT_GENERATE_DICTIONARY_NEW) ...@@ -95,18 +95,15 @@ Macro(ROOT_GENERATE_DICTIONARY_NEW)
String(REPLACE ";" " " Int_HDRS_STR "${Int_HDRS}") String(REPLACE ";" " " Int_HDRS_STR "${Int_HDRS}")
Set(EXTRA_DICT_PARAMETERS "") Set(EXTRA_DICT_PARAMETERS "")
If (ROOT_FOUND_VERSION GREATER 59999)
Set(Int_ROOTMAPFILE ${LIBRARY_OUTPUT_PATH}/lib${Int_LIB}.rootmap) Set(Int_ROOTMAPFILE ${LIBRARY_OUTPUT_PATH}/lib${Int_LIB}.rootmap)
Set(Int_PCMFILE G__${Int_LIB}Dict_rdict.pcm) Set(Int_PCMFILE G__${Int_LIB}Dict_rdict.pcm)
Set(OUTPUT_FILES ${OUTPUT_FILES} ${Int_PCMFILE} ${Int_ROOTMAPFILE}) Set(OUTPUT_FILES ${OUTPUT_FILES} ${Int_PCMFILE} ${Int_ROOTMAPFILE})
Set(EXTRA_DICT_PARAMETERS ${EXTRA_DICT_PARAMETERS} Set(EXTRA_DICT_PARAMETERS ${EXTRA_DICT_PARAMETERS}
-rmf ${Int_ROOTMAPFILE} -rmf ${Int_ROOTMAPFILE}
-rml ${Int_LIB}${CMAKE_SHARED_LIBRARY_SUFFIX}) -rml ${Int_LIB}${CMAKE_SHARED_LIBRARY_SUFFIX})
Set_Source_Files_Properties(${OUTPUT_FILES} PROPERTIES GENERATED TRUE) Set_Source_Files_Properties(${OUTPUT_FILES} PROPERTIES GENERATED TRUE)
String(REPLACE ";" " " EXTRA_DICT_PARAMETERS_STR "${EXTRA_DICT_PARAMETERS}") String(REPLACE ";" " " EXTRA_DICT_PARAMETERS_STR "${EXTRA_DICT_PARAMETERS}")
EndIf()
# We need some environment variables which are present when running cmake at the # We need some environment variables which are present when running cmake at the
# time we run make. To pass the variables a script is created containing the # time we run make. To pass the variables a script is created containing the
...@@ -169,48 +166,6 @@ MACRO (GENERATE_ROOT_TEST_SCRIPT SCRIPT_FULL_NAME) ...@@ -169,48 +166,6 @@ MACRO (GENERATE_ROOT_TEST_SCRIPT SCRIPT_FULL_NAME)
ENDMACRO (GENERATE_ROOT_TEST_SCRIPT) ENDMACRO (GENERATE_ROOT_TEST_SCRIPT)
Macro(ROOT_GENERATE_ROOTMAP)
# All Arguments needed for this new version of the macro are defined
# in the parent scope, namely in the CMakeLists.txt of the submodule
if (DEFINED LINKDEF)
foreach(l ${LINKDEF})
If( IS_ABSOLUTE ${l})
Set(Int_LINKDEF ${Int_LINKDEF} ${l})
Else( IS_ABSOLUTE ${l})
Set(Int_LINKDEF ${Int_LINKDEF} ${CMAKE_CURRENT_SOURCE_DIR}/${l})
EndIf( IS_ABSOLUTE ${l})
endforeach()
foreach(d ${DEPENDENCIES})
get_filename_component(_ext ${d} EXT)
If(NOT _ext MATCHES a$)
if(_ext)
set(Int_DEPENDENCIES ${Int_DEPENDENCIES} ${d})
else()
set(Int_DEPENDENCIES ${Int_DEPENDENCIES} lib${d}.so)
endif()
Else()
Message("Found Static library with extension ${_ext}")
EndIf()
endforeach()
set(Int_LIB ${LIBRARY_NAME})
set(Int_OUTFILE ${LIBRARY_OUTPUT_PATH}/lib${Int_LIB}.rootmap)
add_custom_command(OUTPUT ${Int_OUTFILE}
COMMAND ${RLIBMAP_EXECUTABLE} -o ${Int_OUTFILE} -l ${Int_LIB}
-d ${Int_DEPENDENCIES} -c ${Int_LINKDEF}
DEPENDS ${Int_LINKDEF} ${RLIBMAP_EXECUTABLE} )
add_custom_target( lib${Int_LIB}.rootmap ALL DEPENDS ${Int_OUTFILE})
set_target_properties(lib${Int_LIB}.rootmap PROPERTIES FOLDER RootMaps )
#---Install the rootmap file------------------------------------
#install(FILES ${Int_OUTFILE} DESTINATION lib COMPONENT libraries)
install(FILES ${Int_OUTFILE} DESTINATION lib)
endif(DEFINED LINKDEF)
EndMacro(ROOT_GENERATE_ROOTMAP)
Macro(GENERATE_LIBRARY) Macro(GENERATE_LIBRARY)
# TODO: remove this backwards-compatibility check when no longer needed # TODO: remove this backwards-compatibility check when no longer needed
...@@ -261,11 +216,6 @@ Macro(GENERATE_LIBRARY) ...@@ -261,11 +216,6 @@ Macro(GENERATE_LIBRARY)
) )
EndIf(LINKDEF) EndIf(LINKDEF)
If (ROOT_FOUND_VERSION LESS 59999)
ROOT_GENERATE_ROOTMAP()
EndIf()
set(Int_DEPENDENCIES) set(Int_DEPENDENCIES)
foreach(d ${DEPENDENCIES}) foreach(d ${DEPENDENCIES})
get_filename_component(_ext ${d} EXT) get_filename_component(_ext ${d} EXT)
......
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