vcpkg/ports/gdcm/fix-share-path.patch
JackBoosY ddec7174c1 [gdcm]Update to v3.0.0 and rename to gdcm. (#6348)
* [gdcm]Update to v3.0.0 and rename to gdcm.

* [gdcm2]Add empty port "gdcm2" mapping to port gdcm
2019-05-09 23:03:59 -07:00

33 lines
954 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ac16ab..842d833 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -246,15 +246,15 @@ if(NOT GDCM_INSTALL_LIB_DIR)
endif()
if(NOT GDCM_INSTALL_DATA_DIR)
- set(GDCM_INSTALL_DATA_DIR "share/${subdir}")
+ set(GDCM_INSTALL_DATA_DIR "share/${projectname}")
endif()
if(NOT GDCM_INSTALL_INCLUDE_DIR)
- set(GDCM_INSTALL_INCLUDE_DIR "include/${subdir}")
+ set(GDCM_INSTALL_INCLUDE_DIR "include/${projectname}")
endif()
if(NOT GDCM_INSTALL_DOC_DIR)
- set(GDCM_INSTALL_DOC_DIR "share/doc/${subdir}")
+ set(GDCM_INSTALL_DOC_DIR "share/doc/${projectname}")
endif()
if(NOT GDCM_INSTALL_MAN_DIR)
@@ -262,7 +262,7 @@ if(NOT GDCM_INSTALL_MAN_DIR)
endif()
if(NOT GDCM_INSTALL_PACKAGE_DIR)
- set(GDCM_INSTALL_PACKAGE_DIR ${GDCM_INSTALL_LIB_DIR}/${subdir}
+ set(GDCM_INSTALL_PACKAGE_DIR ${GDCM_INSTALL_LIB_DIR}/${projectname}
CACHE INTERNAL "")
endif()