Skip to content

Commit 1c39a18

Browse files
committed
fix linker warning for Xcode 16+
1 parent 3ac8b4b commit 1c39a18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/oidn_platform.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,10 @@ if(APPLE)
175175
# Link against libc++ which supports C++11 features
176176
append(OIDN_CXX_FLAGS "-stdlib=libc++")
177177

178-
# FIXME: force old linker to avoid corrupted binary when using ISPC with new linker in Xcode 15
178+
# Force old linker to avoid corrupted binary when using ISPC with new linker in Xcode 15
179179
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND
180-
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15)
180+
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15 AND
181+
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16)
181182
add_link_options("-Wl,-ld_classic")
182183
endif()
183184
endif()

0 commit comments

Comments
 (0)