Skip to content

Commit

Permalink
set CMAKE_OSX_DEPLOYMENT_TARGET at 10.12 to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
trongnhanuit committed Feb 6, 2025
1 parent ff4fad9 commit ac2dce7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ elseif (APPLE)
else()
# supports the first version changed from OS X to macOS
add_definitions("--target=x86_64-apple-macos10.12")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --target=x86_64-apple-macos10.12")
endif()
endif()
Expand Down

0 comments on commit ac2dce7

Please sign in to comment.