Skip to content

Commit c0044ea

Browse files
committed
cmake: do not build unit tests for ios
1 parent 04340e8 commit c0044ea

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

build/cmake/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,4 @@ myci_declare_library(${PROJECT_NAME}
2424
../../src/${PROJECT_NAME}
2525
)
2626

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

build/cmake/unit_tests.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# if the library is compiled by vcpkg during the port build,
2+
# then we don't need to build unit tests
3+
if(IS_VCPKG_PORT_BUILD)
4+
return()
5+
endif()
6+
7+
# no unit tests for ios
8+
if(IOS)
9+
return()
10+
endif()
11+
112
set(test_srcs)
213
myci_add_source_files(test_srcs
314
DIRECTORY

0 commit comments

Comments
 (0)