Skip to content

Commit 0b67a1f

Browse files
author
Matevz Morato
committed
Fix MacOS build
1 parent 12d6dfe commit 0b67a1f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/Flags.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,14 @@ endif()
131131
# Don't include symbols for the linked libraries
132132
function(exclude_archive_libs_symbols target)
133133
if(WIN32)
134-
# TODO: check if this has an equivalent flag for MSVC
134+
# No direct equivalent for MSVC
135+
elseif(APPLE)
136+
# No equivalent flag on macOS ld64
135137
elseif(UNIX)
136138
get_property(TEMP_LINK_FLAGS TARGET ${target} PROPERTY LINK_FLAGS)
137139
set(TEMP_LINK_FLAGS "${TEMP_LINK_FLAGS} -Wl,--exclude-libs=ALL")
138140
set_property(TARGET ${target} PROPERTY LINK_FLAGS ${TEMP_LINK_FLAGS})
139141
else()
140-
message(FATAL_ERROR "Unexpeced host, stopping build")
142+
message(FATAL_ERROR "Unexpected host, stopping build")
141143
endif()
142144
endfunction()

0 commit comments

Comments
 (0)