Skip to content

Commit 26f4bc0

Browse files
committed
vcpkg: do not build unit tests from vcpkg
1 parent f5cb3fa commit 26f4bc0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build/cmake/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ myci_declare_library(${name}
2525
../../src/${name}
2626
)
2727

28-
include(unit_tests.cmake)
28+
# if the library is compiled by vcpkg during the library package installation,
29+
# then we don't need to build unit tests
30+
if(NOT DEFINED VCPKG_INSTALL_PREFIX)
31+
include(unit_tests.cmake)
32+
endif()

0 commit comments

Comments
 (0)