File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ add_test(NAME test_paralog_All COMMAND test_paralog)
157157
158158add_executable (test_unicodecvt test_unicodecvt.cpp)
159159target_include_directories (test_unicodecvt PRIVATE ../include )
160- if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
160+ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR NOT Iconv_FOUND )
161161target_link_libraries (test_unicodecvt PRIVATE bux Catch2::Catch2WithMain)
162162else ()
163163target_link_libraries (test_unicodecvt PRIVATE bux Catch2::Catch2WithMain Iconv::Iconv stdc++ m)
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ add_test(NAME test_paralog_All COMMAND test_paralog)
165165
166166add_executable (test_unicodecvt test_unicodecvt.cpp)
167167target_include_directories (test_unicodecvt PRIVATE ../include )
168- if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
168+ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR NOT Iconv_FOUND )
169169target_link_libraries (test_unicodecvt PRIVATE bux Catch2::Catch2WithMain)
170170else ()
171171target_link_libraries (test_unicodecvt PRIVATE bux Catch2::Catch2WithMain Iconv::Iconv stdc++ m)
You can’t perform that action at this time.
0 commit comments