Skip to content

Commit

Permalink
change environment check order
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 committed Feb 14, 2019
1 parent 25ded8a commit ea7715b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ project(poac)
# Preprocessor definitions
add_definitions(-DPOAC_PROJECT_ROOT="${CMAKE_SOURCE_DIR}")
add_definitions(-DPOAC_VERSION="0.1.2")
if(UNIX)
if(CYGWIN)
add_definitions(-D_GNU_SOURCE -DBOOST_ASIO_HAS_STD_STRING_VIEW -Wa,-mbig-obj)
elseif(UNIX)
add_definitions("-fdiagnostics-color -Wall -Wextra -Werror")
if(NOT APPLE)
add_definitions(-D_GNU_SOURCE -DBOOST_ASIO_HAS_STD_STRING_VIEW)
endif()
elseif(WIN32)
if(CYGWIN)
add_definitions(-D_GNU_SOURCE -DBOOST_ASIO_HAS_STD_STRING_VIEW -Wa,-mbig-obj)
elseif(MSVC)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /MT")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_GNU_SOURCE /DBOOST_ASIO_HAS_STD_STRING_VIEW /mbig-obj")
endif()
Expand Down

0 comments on commit ea7715b

Please sign in to comment.