mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix cmake for osx
This commit is contained in:
parent
e90c86128d
commit
dca37acce0
|
@ -2,8 +2,12 @@ cmake_minimum_required(VERSION 3.2.2)
|
|||
|
||||
project(xlnt)
|
||||
|
||||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -std=c++1y)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10)
|
||||
if(APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10)
|
||||
elseif(CMAKE_COMPILER_IS_GNUCC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y")
|
||||
endif(APPLE)
|
||||
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../../../lib)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../../../lib)
|
||||
|
|
Loading…
Reference in New Issue
Block a user