Skip to content

Commit

Permalink
fix: build failed on macOS
Browse files Browse the repository at this point in the history
CEF 117 require macOS 10.15
```
clang: error: overriding '-mmacosx-version-min=10.15' option with '-target x86_64-apple-macos10.13' [-Werror,-Woverriding-t-option]
```
  • Loading branch information
L-Super committed Sep 14, 2024
1 parent 4d5d83e commit c1b00ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ if(OS_MACOS)
endif()

# detect minimum deployment target by CEF
if(${CEF_VERSION_MAJOR} VERSION_GREATER_EQUAL 104)
# plese refere to: https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding.md
if(${CEF_VERSION_MAJOR} VERSION_GREATER_EQUAL 117)
set(CEF_MIN_DEPLOYMENT_TARGET 10.15)
elseif(${CEF_VERSION_MAJOR} VERSION_GREATER_EQUAL 104)
set(CEF_MIN_DEPLOYMENT_TARGET 10.13)
else()
set(CEF_MIN_DEPLOYMENT_TARGET 10.11)
Expand Down

0 comments on commit c1b00ec

Please sign in to comment.