Skip to content

Commit

Permalink
fix issue#157 in gcc5/clang-3.5/clang-3.6 compiling error by ignore u…
Browse files Browse the repository at this point in the history
…nittest under these compilers.
  • Loading branch information
Oneplus committed Mar 24, 2016
1 parent 631006e commit 982b132
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ add_subdirectory ("console")

# mongoose server is not supported in windows
if (UNIX)
add_subdirectory ("unittest")
add_subdirectory ("server")
# only compile unittest with gnu-c++<5.0
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0")
add_subdirectory ("unittest")
endif()
endif()
endif()


0 comments on commit 982b132

Please sign in to comment.