We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abbb667 commit 2644f9bCopy full SHA for 2644f9b
build/cmake/CMakeLists.txt
@@ -4,7 +4,15 @@ project(utki)
4
5
# !!! find_package must go after project() declaration !!!
6
# Otherwise VCPKG does not set the CMAKE_PREFIX_PATH to find packages.
7
-find_package(myci CONFIG REQUIRED)
+find_package(myci
8
+ CONFIG
9
+ REQUIRED
10
+ # For host VCPKG dependencies like myci, we need to explicitly tell where to find them,
11
+ # because VCPKG adds only target triplet installed directory to the CMAKE_PREFIX_PATH.
12
+ # If host==target the VCPKG_HOST_TRIPLET is not set, which is fine, because target dir is searched anyway.
13
+ PATHS
14
+ ${CMAKE_BINARY_DIR}/vcpkg_installed/${VCPKG_HOST_TRIPLET}/share/myci
15
+)
16
17
set(srcs)
18
myci_add_source_files(srcs
0 commit comments