Skip to content

Commit 3de27f7

Browse files
committed
[Change] Link Iconv::Iconv precisely.
1 parent 219158f commit 3de27f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ add_test(NAME test_paralog_All COMMAND test_paralog)
157157

158158
add_executable(test_unicodecvt test_unicodecvt.cpp)
159159
target_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)
161161
target_link_libraries(test_unicodecvt PRIVATE bux Catch2::Catch2WithMain)
162162
else()
163163
target_link_libraries(test_unicodecvt PRIVATE bux Catch2::Catch2WithMain Iconv::Iconv stdc++ m)

test/archlinux/aur_poc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ add_test(NAME test_paralog_All COMMAND test_paralog)
165165

166166
add_executable(test_unicodecvt test_unicodecvt.cpp)
167167
target_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)
169169
target_link_libraries(test_unicodecvt PRIVATE bux Catch2::Catch2WithMain)
170170
else()
171171
target_link_libraries(test_unicodecvt PRIVATE bux Catch2::Catch2WithMain Iconv::Iconv stdc++ m)

0 commit comments

Comments
 (0)