mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[all] common: set the backtrace define for the entire project
This commit is contained in:
@@ -9,10 +9,6 @@ include_directories(
|
||||
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
|
||||
if(ENABLE_BACKTRACE)
|
||||
add_definitions(-DENABLE_BACKTRACE)
|
||||
endif()
|
||||
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(
|
||||
"-Wno-unknown-warning-option"
|
||||
@@ -41,6 +37,10 @@ set(COMMON_SOURCES
|
||||
add_library(lg_common STATIC ${COMMON_SOURCES})
|
||||
target_link_libraries(lg_common lg_common_platform)
|
||||
|
||||
if(ENABLE_BACKTRACE)
|
||||
target_compile_definitions(lg_common PUBLIC -DENABLE_BACKTRACE)
|
||||
endif()
|
||||
|
||||
target_include_directories(lg_common
|
||||
INTERFACE
|
||||
include
|
||||
|
Reference in New Issue
Block a user