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
4ca2d650
Commit
4ca2d650
authored
3 years ago
by
Administrator
Committed by
Volker Friese
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove leftovers which were needed for ROOT 5
parent
0ed706c1
No related branches found
No related tags found
1 merge request
!800
Revise the build environment (Move to C++17)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/ROOTMacros.cmake
+8
-58
8 additions, 58 deletions
cmake/modules/ROOTMacros.cmake
with
8 additions
and
58 deletions
cmake/modules/ROOTMacros.cmake
+
8
−
58
View file @
4ca2d650
...
@@ -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
)
...
...
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