diff --git a/CMakeLists.txt b/CMakeLists.txt index d2d0c14ab..e1087af11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,7 @@ else(WIN32) add_compile_options( -Wall -Wno-deprecated + -mmacosx-version-min=10.9 $<$:-g> $<$:-O0> $<$:-Ofast> @@ -80,6 +81,9 @@ else(WIN32) $<$:-fPIE> $<$:-g> ) + add_link_options( + -mmacosx-version-min=10.9 + ) elseif ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR