mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-23 16:15:07 +00:00
Enable gcc extensions on cygwin only
This commit is contained in:
parent
5f8418cd9b
commit
975c5646a4
@ -27,6 +27,10 @@ add_executable(cquery "")
|
||||
# Enable C++14 (Required)
|
||||
set_property(TARGET cquery PROPERTY CXX_STANDARD 14)
|
||||
set_property(TARGET cquery PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||
# Disable gnu extensions except for Cygwin which needs them to build properly
|
||||
if(NOT CYGWIN)
|
||||
set_property(TARGET cquery PROPERTY CXX_EXTENSIONS OFF)
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL Windows)
|
||||
# Common MSVC/Clang(Windows) options
|
||||
|
Loading…
Reference in New Issue
Block a user