2019-02-27 02:34:15 +08:00
include ( vcpkg_common_functions )
2019-03-25 06:32:53 +08:00
if ( ${ VCPKG_TARGET_ARCHITECTURE } MATCHES x86 )
message ( FATAL_ERROR "This library doesn't support x86 arch. Please use x64 instead. If it is critical, create an issue at the repo: github.com/luncliff/coroutine" )
endif ( )
2019-04-29 10:30:33 +08:00
# changed to 1.4.2
2019-02-27 02:34:15 +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 l u n c l i f f / c o r o u t i n e
2019-04-29 10:30:33 +08:00
R E F 1 . 4 . 2
S H A 5 1 2 f c 2 5 4 4 1 1 6 a 5 b e e 9 7 b 8 e f 1 5 0 1 f c 7 f 1 b 8 0 5 2 4 8 f 0 a 0 c 6 0 1 1 1 1 f 1 a 3 1 7 e 8 1 3 a a 1 d 3 f 9 a 2 e 0 8 a b 1 b 1 4 0 c c 3 6 e 2 2 d 9 c 9 0 2 4 9 3 0 1 1 1 0 e c 5 b 5 e 5 5 a 4 0 f b 3 9 2 1 7 c f 5 f 4 0 9 9 8 9 2 0 d
2019-02-27 02:34:15 +08:00
H E A D _ R E F m a s t e r
)
# package: 'ms-gsl'
2019-05-03 13:57:43 +08:00
set ( GSL_INCLUDE_DIR ${ CURRENT_INSTALLED_DIR } /include
2019-03-25 06:32:53 +08:00
C A C H E P A T H " p a t h t o i n c l u d e C + + c o r e g u i d e l i n e s u p p o r t l i b r a r y " F O R C E )
message ( STATUS "Using ms-gsl at ${GSL_INCLUDE_DIR}" )
2019-02-27 02:34:15 +08:00
vcpkg_configure_cmake (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P R E F E R _ N I N J A
O P T I O N S
2019-03-25 06:32:53 +08:00
- D G S L _ I N C L U D E _ D I R = $ { G S L _ I N C L U D E _ D I R }
2019-02-27 02:34:15 +08:00
- D T E S T _ D I S A B L E D = T r u e
)
vcpkg_install_cmake ( )
file (
I N S T A L L $ { S O U R C E _ P A T H } / L I C E N S E
D E S T I N A T I O N $ { C U R R E N T _ P A C K A G E S _ D I R } / s h a r e / c o r o u t i n e
R E N A M E c o p y r i g h t
)
# removed duplicates in debug
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/share )