Skip to content

Commit

Permalink
ticalcs: cmake: disable test_ticalcs_2 on windows temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Aug 20, 2024
1 parent a0703e1 commit 9ae6517
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libticalcs/trunk/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ project(libticalcs2-tests
LANGUAGES CXX)

add_executable(torture_ticalcs torture_ticalcs.cc)
add_executable(test_ticalcs_2 test_ticalcs_2.cc)
if(NOT WIN32) # not compatible for now
add_executable(test_ticalcs_2 test_ticalcs_2.cc)
endif()

if(WIN32)
pkg_check_modules(DEPS REQUIRED glib-2.0 libarchive)
Expand All @@ -27,6 +29,10 @@ if(USE_ICONV)
endif()

foreach(tar torture_ticalcs test_ticalcs_2)
if(tar STREQUAL test_ticalcs_2 AND WIN32)
continue() # not compatible for now
endif ()

if(Iconv_FOUND AND NOT Iconv_IS_BUILT_IN)
target_include_directories(${tar} PRIVATE ${Iconv_INCLUDE_DIRS})
target_link_libraries(${tar} ${Iconv_LIBRARIES})
Expand Down

0 comments on commit 9ae6517

Please sign in to comment.