mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[all] allow disable of backtrace support during build
This commit is contained in:
@@ -5,6 +5,10 @@ include_directories(
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
if(ENABLE_BACKTRACE)
|
||||
add_definitions(-DENABLE_BACKTRACE)
|
||||
endif()
|
||||
|
||||
set(COMMON_SOURCES
|
||||
src/stringutils.c
|
||||
src/stringlist.c
|
||||
@@ -27,7 +31,9 @@ if(WIN32)
|
||||
else()
|
||||
set(SOURCES ${COMMON_SOURCES} ${LINUX_SOURCES})
|
||||
add_library(lg_common STATIC ${SOURCES})
|
||||
target_link_libraries(lg_common bfd)
|
||||
if(ENABLE_BACKTRACE)
|
||||
target_link_libraries(lg_common bfd)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_include_directories(lg_common
|
||||
|
Reference in New Issue
Block a user