mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-05-01 05:40:54 +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)
|
ENDFOREACH(item)
|
||||||
endif()
|
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)
|
GET_DIRECTORY_PROPERTY(_directory_flags DEFINITIONS)
|
||||||
LIST(APPEND _compiler_FLAGS ${_directory_flags})
|
LIST(APPEND _compiler_FLAGS ${_directory_flags})
|
||||||
SEPARATE_ARGUMENTS(_compiler_FLAGS)
|
SEPARATE_ARGUMENTS(_compiler_FLAGS)
|
||||||
|
|
Loading…
Reference in a new issue