Skip to content

Commit

Permalink
Fixed CMAKE_OSX_DEPLOYMENT_TARGET.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Oct 5, 2023
1 parent 8c06eef commit 184492e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions etc/SuperBuild/cmake/Modules/BuildLCMS2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ if(WIN32)
else()

if(APPLE)
set(LCMS2_CXX_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} ${CMAKE_CXX_FLAGS}")
set(LCMS2_C_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} ${CMAKE_C_FLAGS}")
set(LCMS2_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(LCMS2_C_FLAGS "${CMAKE_C_FLAGS}")
if (CMAKE_OSX_DEPLOYMENT_TARGET)
list(APPEND LCMS2_CXX_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
list(APPEND LCMS2_C_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
endif()

set(LCMS2_BUILD_ARGS
Expand Down
8 changes: 6 additions & 2 deletions etc/SuperBuild/cmake/Modules/BuildVPX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ else()
set(VPX_LDFLAGS)

if(APPLE)
set(VPX_CXX_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} ${CMAKE_CXX_FLAGS}")
set(VPX_C_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} ${CMAKE_C_FLAGS}")
set(VPX_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(VPX_C_FLAGS "${CMAKE_C_FLAGS}")
if (CMAKE_OSX_DEPLOYMENT_TARGET)
list(APPEND VPX_CXX_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
list(APPEND VPX_C_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
endif()

set(VPX_CONFIGURE_ARGS
Expand Down
8 changes: 6 additions & 2 deletions etc/SuperBuild/cmake/Modules/BuildX264.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ else()
set(X264_LDFLAGS)

if(APPLE)
set(X264_CXX_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} ${CMAKE_CXX_FLAGS}")
set(X264_C_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} ${CMAKE_C_FLAGS}")
set(X264_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(X264_C_FLAGS "${CMAKE_C_FLAGS}")
if (CMAKE_OSX_DEPLOYMENT_TARGET)
list(APPEND X264_CXX_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
list(APPEND X264_C_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
endif()

set(X264_CONFIGURE_ARGS
Expand Down

0 comments on commit 184492e

Please sign in to comment.