Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Remove setting CMAKE_OSX_SYSROOT
Browse files Browse the repository at this point in the history
Setting CMAKE_OSX_SYSROOT has shown to cause build failures on fresh macos 10.13 installs
  • Loading branch information
spoonincode committed Mar 22, 2019
1 parent b364446 commit b0b4fda
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/libraries/fc/CMakeModules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")

if (UNIX)
if (APPLE)
execute_process(COMMAND xcrun --show-sdk-path
OUTPUT_VARIABLE CMAKE_OSX_SYSROOT
OUTPUT_STRIP_TRAILING_WHITESPACE)
list(APPEND CMAKE_PREFIX_PATH "/usr/local/opt/llvm@4")
list(APPEND CMAKE_PREFIX_PATH "/usr/local/opt/gettext")
endif()
if (UNIX AND APPLE)
list(APPEND CMAKE_PREFIX_PATH "/usr/local/opt/llvm@4" "/usr/local/opt/gettext")
endif()

include( GNUInstallDirs )
Expand Down

0 comments on commit b0b4fda

Please sign in to comment.