blob: 6d23f0af4c0094355c006e7ac0567511057b4ea4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
# Using release typelibs also for debug:
# vcpkg is unable to build the debug variant for MSVC
# as long as it doesn't install the python interpreter
# for the debug CRT.
set(ENV{GI_TYPELIB_PATH} "${CURRENT_INSTALLED_DIR}/lib/girepository-1.0")
vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_check_features(OUT_FEATURE_OPTIONS options
FEATURES
run-test RUN_TEST
)
vcpkg_cmake_configure(
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
OPTIONS
${options}
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
)
vcpkg_cmake_build(ADD_BIN_TO_PATH)
|