1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Check for GCC/G++ explicitly instead of simply Unix.

Since we're setting gcc specific build flags.
This commit is contained in:
Joakim Soderberg 2013-03-23 08:55:02 +08:00 committed by Andy Green
parent f0ee6696f4
commit c2012e40ed

View file

@ -302,9 +302,9 @@ if (UNIX)
endif(UNIX)
if (UNIX)
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set( CMAKE_C_FLAGS "-Wall -Werror -O4 " )
endif (UNIX)
endif ()
source_group("Headers Private" FILES ${HDR_PRIVATE})
source_group("Headers Public" FILES ${HDR_PUBLIC})