Skip to content

Commit

Permalink
Update c++ compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
binarybottle committed Dec 9, 2015
1 parent 7759d6a commit 4f64aa0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions surface_cpp_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)

#SET(CMAKE_OSX_DEPLOYMENT_TARGET "")
#SET(CMAKE_OSX_SYSROOT /)
#https://forums.developer.apple.com/thread/17334
SET(CMAKE_OSX_DEPLOYMENT_TARGET "")
SET(CMAKE_OSX_SYSROOT /)
# https://cmake.org/Bug/view.php?id=14695
SET(MACOSX_DEPLOYMENT_TARGET ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION})
SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}")
MESSAGE("Setting MACOSX_DEPLOYMENT_TARGET to '${MACOSX_DEPLOYMENT_TARGET}'.")
#SET(MACOSX_DEPLOYMENT_TARGET ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION})
#SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}")
#MESSAGE("Setting MACOSX_DEPLOYMENT_TARGET to '${MACOSX_DEPLOYMENT_TARGET}'.")

PROJECT(brain)

Expand Down

0 comments on commit 4f64aa0

Please sign in to comment.