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:
parent
f0ee6696f4
commit
c2012e40ed
1 changed files with 2 additions and 2 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Reference in a new issue