Skip to content

Commit 291f432

Browse files
authored
Merge pull request swiftlang#30561 from 3405691582/OpenBSD_Iconv_AdditionalIncludePath
[tools] Add include path for iconv on OpenBSD.
2 parents 95f0651 + c9098c6 commit 291f432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/swift-ide-test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ if(LibXml2_FOUND)
1515
include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
1616
target_link_libraries(swift-ide-test PRIVATE ${LIBXML2_LIBRARIES})
1717
target_compile_definitions(swift-ide-test PRIVATE SWIFT_HAVE_LIBXML=1)
18+
if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "OpenBSD" AND NOT CMAKE_CROSSCOMPILING)
19+
include_directories(SYSTEM "/usr/local/include")
20+
endif()
1821
endif()
1922

2023
# Create a symlink for swift-api-dump.py in the bin directory

0 commit comments

Comments
 (0)