Commit 3fe740e1 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Workaround a linker problem on OSX 10.4

parent b5188711
...@@ -92,6 +92,12 @@ IF(CMAKE_COMPILER_IS_GNUCXX) ...@@ -92,6 +92,12 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
# mininal architecture flags, i486 enables GCC atomics # mininal architecture flags, i486 enables GCC atomics
ADD_DEFINITIONS(-march=i486) ADD_DEFINITIONS(-march=i486)
ENDIF() ENDIF()
IF(APPLE AND CMAKE_OSX_DEPLOYMENT_TARGET)
# Workaround linker problems on OSX 10.4
IF(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS "10.5")
ADD_DEFINITIONS(-fno-common)
ENDIF()
ENDIF()
ENDIF() ENDIF()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment