mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 10:38:53 +00:00
Enable gnu extensions for Optick profiler when using gcc compiler, i.e. support ##__VA_ARGS__
This commit is contained in:
parent
37fd056c2d
commit
eaa5cf8ff4
1 changed files with 9 additions and 0 deletions
|
@ -1677,6 +1677,15 @@ else()
|
|||
ENDFOREACH(item)
|
||||
endif()
|
||||
|
||||
# SRS - if using gcc compiler enable gnu extensions for ##__VA_ARGS__ support within optick profiler (i.e. __STRICT_ANSI__ not set)
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
set_source_files_properties(
|
||||
${OPTICK_SOURCES}
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "-std=gnu++${CMAKE_CXX_STANDARD}"
|
||||
)
|
||||
endif()
|
||||
|
||||
GET_DIRECTORY_PROPERTY(_directory_flags DEFINITIONS)
|
||||
LIST(APPEND _compiler_FLAGS ${_directory_flags})
|
||||
SEPARATE_ARGUMENTS(_compiler_FLAGS)
|
||||
|
|
Loading…
Reference in a new issue