Skip to content

Commit 87b53ab

Browse files
committed
Rename installed libSwiftParser.a to libSwiftSwiftParser.a.
Avoid the name clash with the C++ parser on case-insensitive file systems.
1 parent deccb37 commit 87b53ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftParser/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ target_link_libraries(SwiftParser PUBLIC
3737

3838
set_property(GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftParser)
3939

40+
# Rename the installed library to avoid clashing with the C++
41+
# "libswiftParser" on case-insensitive file systems.
42+
set_target_properties(SwiftParser PROPERTIES OUTPUT_NAME "SwiftSwiftParser")
43+
4044
# NOTE: workaround for CMake not setting up include flags yet
4145
set_target_properties(SwiftParser PROPERTIES
4246
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})

0 commit comments

Comments
 (0)