Skip to content

Commit 716d636

Browse files
committed
vcpkg: do not build unit tests during vcpkg port build
1 parent 2622e77 commit 716d636

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

build/cmake/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,8 @@ myci_declare_library(${name}
2525
../../src/${name}
2626
)
2727

28-
message(STATUS "Printing variables!!!!!!!!!!!!!!!!!1")
29-
30-
get_cmake_property(_variableNames VARIABLES)
31-
list (SORT _variableNames)
32-
foreach (_variableName ${_variableNames})
33-
message(STATUS "${_variableName}=${${_variableName}}")
34-
endforeach()
35-
3628
# if the library is compiled by vcpkg during the port build,
3729
# then we don't need to build unit tests
38-
if(NOT MYCI_VCPKG_PORT_BUILD)
30+
if(NOT IS_VCPKG_PORT_BUILD)
3931
include(unit_tests.cmake)
4032
endif()

build/vcpkg/portfile.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ vcpkg_from_github(
1111
vcpkg_cmake_configure(
1212
SOURCE_PATH "${SOURCE_PATH}/build/cmake"
1313
OPTIONS
14-
-D MYCI_VCPKG_PORT_BUILD=True
14+
-D IS_VCPKG_PORT_BUILD=True
1515
)
1616

1717
vcpkg_cmake_install()

0 commit comments

Comments
 (0)