Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Dec 17, 2023
1 parent 40e6c20 commit f779d50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/cmake/xtd_commands.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,13 @@ if (MSVC)
endif ()

if (APPLE)
add_link_options(-ld_classic)
string(REPLACE "." ";" XCODE_VERSION_LIST ${XCODE_VERSION})
list(GET XCODE_VERSION_LIST 0 XCODE_VERSION_MAJOR)
list(GET XCODE_VERSION_LIST 1 XCODE_VERSION_MINOR)
list(GET XCODE_VERSION_LIST 2 XCODE_VERSION_PATCH)
if (XCODE_VERSION_MAJOR GREATER_EQUAL 15)
add_link_options(-Wl -ld_classic)
endif ()
endif ()


Expand Down

0 comments on commit f779d50

Please sign in to comment.