1
0
Fork 0
forked from lthn/blockchain

Fixes CMAKE_OSX_DEPLOYMENT_TARGET (#337)

Hiya,

When compiling on macOS, i get "ld: warning: dylib (/opt/homebrew/lib/libboost_filesystem-mt.dylib) was built for newer macOS version (13.0) than being linked (11.0)"

This is fixed by adding "CACHE STRING"
This commit is contained in:
Snider 2023-01-03 12:34:26 +00:00 committed by GitHub
parent 2e6d05636d
commit 4ff66c2b15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ enable_testing()
if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10.5)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10.5 CACHE STRING "Minimum OS X deployment version")
endif()
set(USE_PCH FALSE CACHE BOOL "Use shared precompiled headers")