Merge branch 'hotfix-1.1.3' of https://github.com/RamblingMadMan/nana
This commit is contained in:
@@ -34,8 +34,13 @@ if(BIICODE)
|
||||
# we'll use the default config file so we can iliminate the following macro definitions
|
||||
if(MSVC)
|
||||
# More MSVC specific compilation flags
|
||||
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||
if(MSVC14)
|
||||
add_definitions(-DSTD_CODECVT_NOT_SUPPORTED)
|
||||
else()
|
||||
add_definitions(-DNOT_IMPLEMENTED_KEYWORD_noexcept)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_biicode_targets()
|
||||
@@ -50,12 +55,21 @@ cmake_minimum_required(VERSION 2.8)
|
||||
if(WIN32)
|
||||
add_definitions(-DNANA_WINDOWS)
|
||||
add_definitions(-DPLATFORM_SPEC_HPP=<nana/detail/win32/platform_spec.hpp>)
|
||||
|
||||
if(MSVC14)
|
||||
add_definitions(-DSTD_CODECVT_NOT_SUPPORTED)
|
||||
else()
|
||||
add_definitions(-DNOT_IMPLEMENTED_KEYWORD_noexcept)
|
||||
endif()
|
||||
|
||||
#Test if it is MINGW
|
||||
if(MINGW)
|
||||
add_definitions(-DNANA_MINGW)
|
||||
add_definitions(-DSTD_CODECVT_NOT_SUPPORTED)
|
||||
option(NANA_THREAD_NOT_SUPPORTED "Use this flag if MinGW version is older than 4.8.1" ON)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8.1")
|
||||
option(NANA_THREAD_NOT_SUPPORTED "Use this flag if MinGW version is older than 4.8.1" ON)
|
||||
endif()
|
||||
endif()
|
||||
if(NANA_THREAD_NOT_SUPPORTED)
|
||||
add_definitions(-DSTD_THREAD_NOT_SUPPORTED)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user