2018-02-24 18:26:31 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O r t t r o r g / r t t r
2023-02-24 03:09:43 +08:00
R E F 7 e d b d 5 8 0 c f a d 5 0 9 a 3 2 5 3 c 7 3 3 e 7 0 1 4 4 e 3 6 f 0 2 e c d 4
S H A 5 1 2 1 7 4 3 2 7 2 8 0 3 7 b c 0 f 8 e 3 4 6 c 6 b d 0 1 2 9 8 c 6 e e 3 a 4 7 1 4 c 8 3 5 0 5 b 2 c f 1 b c 2 3 3 0 5 a c e a 5 c c 5 5 9 2 5 e 7 f c 2 8 a 8 c f 1 8 2 b 6 b a 2 6 a b d c 9 d 4 0 e a 2 f 5 b 1 6 8 6 1 5 c 0 3 0 d 5 e b e e c 9 a 8 9 6 1 6 3 6
2018-02-24 18:26:31 +08:00
H E A D _ R E F m a s t e r
2017-10-27 09:33:17 +08:00
P A T C H E S
2018-10-24 01:43:54 +08:00
f i x - d i r e c t o r y - o u t p u t . p a t c h
2019-12-21 04:15:14 +08:00
F i x - d e p e n d s . p a t c h
r e m o v e - o w n e r - r e a d - p e r m s . p a t c h
2023-02-24 03:09:43 +08:00
d i s a b l e - u n s u p p o r t - h e a d e r . p a t c h
2017-05-23 03:10:20 +08:00
)
2022-05-17 02:39:42 +08:00
if ( "${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "static" )
set ( BUILD_STATIC ON )
set ( BUILD_RTTR_DYNAMIC OFF )
set ( BUILD_WITH_STATIC_RUNTIME_LIBS OFF )
elseif ( "${VCPKG_LIBRARY_LINKAGE}" STREQUAL "dynamic" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "static" )
set ( BUILD_STATIC OFF )
set ( BUILD_RTTR_DYNAMIC OFF )
set ( BUILD_WITH_STATIC_RUNTIME_LIBS ON )
elseif ( "${VCPKG_LIBRARY_LINKAGE}" STREQUAL "dynamic" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "dynamic" )
set ( BUILD_STATIC OFF )
set ( BUILD_RTTR_DYNAMIC ON )
set ( BUILD_WITH_STATIC_RUNTIME_LIBS OFF )
2019-07-23 01:37:38 +08:00
else ( )
2022-05-17 02:39:42 +08:00
message ( FATAL_ERROR "rttr's build system does not support this configuration: VCPKG_LIBRARY_LINKAGE: ${VCPKG_LIBRARY_LINKAGE} VCPKG_CRT_LINKAGE: ${VCPKG_CRT_LINKAGE}" )
2019-07-23 01:37:38 +08:00
endif ( )
2022-05-17 02:39:42 +08:00
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S
- D B U I L D _ B E N C H M A R K S = O F F
- D B U I L D _ U N I T _ T E S T S = O F F
- D B U I L D _ E X A M P L E S = O F F
- D B U I L D _ D O C U M E N T A T I O N = O F F
- D B U I L D _ S T A T I C = $ { B U I L D _ S T A T I C }
- D B U I L D _ R T T R _ D Y N A M I C = $ { B U I L D _ R T T R _ D Y N A M I C }
- D B U I L D _ W I T H _ S T A T I C _ R U N T I M E _ L I B S = $ { B U I L D _ W I T H _ S T A T I C _ R U N T I M E _ L I B S }
2017-05-23 03:10:20 +08:00
)
2022-05-17 02:39:42 +08:00
vcpkg_cmake_install ( )
2017-05-23 03:10:20 +08:00
2022-05-17 02:39:42 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
vcpkg_cmake_config_fixup ( CONFIG_PATH cmake )
2019-03-23 00:59:08 +08:00
else ( )
2022-05-17 02:39:42 +08:00
vcpkg_cmake_config_fixup ( CONFIG_PATH share/rttr/cmake )
2019-07-23 01:37:38 +08:00
endif ( )
2023-02-24 03:09:43 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/LICENSE.txt" )
2017-05-23 03:10:20 +08:00
file ( REMOVE_RECURSE
2022-05-17 02:39:42 +08:00
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / i n c l u d e "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / s h a r e "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / R E A D M E . m d "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / L I C E N S E . t x t "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / L I C E N S E . t x t "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / R E A D M E . m d "
2017-05-23 03:10:20 +08:00
)