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-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
2020-01-28 06:02:37 +08:00
R E F f c d 9 7 0 8 0 7 e 9 a 4 7 c 2 5 0 c 1 a 4 e 0 6 c 7 d c 6 d 9 3 0 7 9 b 6 8 4
S H A 5 1 2 5 1 7 f 1 c 1 7 2 6 e 4 a d c 3 6 c d 3 4 3 7 9 c 5 4 5 3 2 4 c 9 9 8 6 1 d 7 c b 5 e b d 3 c e b e 0 b 7 1 3 2 f e 5 b 6 1 9 6 9 a 0 0 e 4 0 5 b c 1 0 6 b b 8 f 0 8 9 f 3 7 d 3 a 7 c a 9 b 1 b c d c 6 6 5 a 5 c d 6 d f c a a f 6 8 5 6 b e 3 7 b e c 5 b 0
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 )