Skip to content

Commit

Permalink
Merge pull request #13 from leapmotion/fix-compatibility
Browse files Browse the repository at this point in the history
Fix compatibility
  • Loading branch information
codemercenary committed Aug 11, 2016
2 parents 4569298 + ab44cc7 commit 144739a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion standard/StandardProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ does the following:
* Enforces the project has a VERSION set.
]]

include (CMakeParseArguments) #Backwards compatibilty

#This must be a macro since project defines scope-local variables
#that we generally rely on being in the root context.
macro(standard_project project_name)
Expand Down Expand Up @@ -100,7 +102,7 @@ function(standard_project_preinit)

#CMAKE_OSX_DEPLOYMENT_TARGET < 10.9 implies -stdlib=libstdc++, which doesn't have
#complete c++11 support. override with libc++
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.9)
if(DEFINED CMAKE_OSX_DEPLOYMENT_TARGET AND CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.9)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++" PARENT_SCOPE)
endif()

Expand Down

0 comments on commit 144739a

Please sign in to comment.