Commit 9856a56b authored by Nicolas Niclausse's avatar Nicolas Niclausse
Browse files

use CMAKE_OSX_DEPLOYMENT_TARGET instead

parent fdbea7d1
Pipeline #209892 passed with stage
in 0 seconds
......@@ -14,6 +14,7 @@
cmake_minimum_required(VERSION 3.6.0)
######################################################################
project(dtkWidgets)
......@@ -71,6 +72,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
## Build setup
## #################################################################
# needed on macos, ignored by others
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "minimum OSX version" FORCE)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
......@@ -85,13 +89,6 @@ if("${isSystemDir}" STREQUAL "-1")
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
endif("${isSystemDir}" STREQUAL "-1")
# fix for conda/dtk-forge/Bir Sur/qt imbroglio
if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.12")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mmacosx-version-min=10.12")
message("CMAKE=" ${CMAKE_CXX_FLAGS})
endif(APPLE)
## ###################################################################
## Test setup
## ###################################################################
......
......@@ -14,12 +14,7 @@
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
# propagate the fix for conda/dtk-forge/Bir Sur/qt imbroglio
if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.12")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mmacosx-version-min=10.12")
endif(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "minimum OSX version" FORCE)
######################################################################
### dtkWidgetsConfig.cmake.in ends here
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