Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Juan Antonio Zaratiegui Vallecillo
VTK
Commits
de5f351a
Commit
de5f351a
authored
4 years ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
cmake: use a single variable for the license destination
Fixes:
#17889
parent
eca1e99e
Branches
Branches containing commit
Tags
v8.0.0.rc2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+10
-1
10 additions, 1 deletion
CMakeLists.txt
with
10 additions
and
1 deletion
CMakeLists.txt
+
10
−
1
View file @
de5f351a
...
...
@@ -63,6 +63,14 @@ include(vtkWrapSettings)
include
(
vtkCrossCompiling
)
include
(
vtkObjectFactory
)
set
(
CMAKE_INSTALL_LICENSEDIR
""
CACHE PATH
"License files (DATAROOTDIR/licenses/
${
CMAKE_PROJECT_NAME
}
"
)
mark_as_advanced
(
CMAKE_INSTALL_LICENSEDIR
)
if
(
NOT CMAKE_INSTALL_LICENSEDIR
)
set
(
CMAKE_INSTALL_LICENSEDIR
"
${
CMAKE_INSTALL_DATAROOTDIR
}
/licenses/
${
CMAKE_PROJECT_NAME
}
"
)
endif
()
# Setup compiler flags for dynamic analysis
# Should be included after vtkTesting
include
(
vtkCompilerDynamicAnalysisFlags
)
...
...
@@ -318,6 +326,7 @@ vtk_module_build(
HEADERS_DESTINATION
"
${
CMAKE_INSTALL_INCLUDEDIR
}
/vtk
${
vtk_version_suffix
}
"
${
vtk_hierarchy_destination_args
}
CMAKE_DESTINATION
"
${
vtk_cmake_destination
}
"
LICENSE_DESTINATION
"
${
CMAKE_INSTALL_LICENSEDIR
}
"
LIBRARY_NAME_SUFFIX
"
${
VTK_CUSTOM_LIBRARY_SUFFIX
}
"
VERSION
"
${
VTK_VERSION
}
"
SOVERSION
"1"
...
...
@@ -449,7 +458,7 @@ endif ()
install
(
FILES
"
${
CMAKE_CURRENT_LIST_DIR
}
/Copyright.txt"
DESTINATION
"
${
CMAKE_INSTALL_
DOC
DIR
}
"
DESTINATION
"
${
CMAKE_INSTALL_
LICENSE
DIR
}
"
COMPONENT
"license"
)
# TODO: HeaderTest exclusions for memcheck.
...
...
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