Can CMake specify the base SDK on Mac OS X?

后端 未结 3 721
我寻月下人不归
我寻月下人不归 2020-12-30 06:06

Does anyone know how to do specify the Mac OS X SDK to build against with CMake? I have searched for cmake mac "base sdk" but this turned up nothing.<

3条回答
  •  伪装坚强ぢ
    2020-12-30 06:32

    Add the following commands on your CMakeLists.txt

    set(CMAKE_OSX_SYSROOT macosx10.10)

    set(CMAKE_OSX_DEPLOYMENT_TARGET "10.5")

    This should be fine.

提交回复
热议问题