minor fix

This commit is contained in:
qqiangwu
2015-04-12 12:05:59 +08:00
parent 79ec3c927d
commit 100283d43e
4 changed files with 9 additions and 3 deletions

View File

@@ -32,6 +32,11 @@ if(BIICODE)
endif(CMAKE_COMPILER_IS_GNUCXX)
# 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)
endif()
add_biicode_targets()
@@ -52,6 +57,7 @@ if(WIN32)
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(NANA_THREAD_NOT_SUPPORTED)
add_definitions(-DNANA_NO_CPP11) # so that deploy.hpp will compile
add_definitions(-DSTD_THREAD_NOT_SUPPORTED)
endif()
endif()