Skip to content

Commit

Permalink
CMake|OS X: Detect OS version, use the MACOS_10_7 definition
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 26, 2015
1 parent f639741 commit c531fc3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doomsday/cmake/PlatformMacx.cmake
Expand Up @@ -11,6 +11,15 @@ set (DENG_CODESIGN_APP_CERT "" CACHE STRING "ID of the certificate for signing a
find_program (CODESIGN_COMMAND codesign)
mark_as_advanced (CODESIGN_COMMAND)

# Detect OS X version.
execute_process (COMMAND sw_vers -productVersion
OUTPUT_VARIABLE MACOS_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)

if (NOT MACOS_VERSION VERSION_LESS 10.7)
add_definitions (-DMACOS_10_7)
endif ()
add_definitions (
-DMACOSX
# Fallback basedir for command line apps.
Expand Down

0 comments on commit c531fc3

Please sign in to comment.