From 80b3dbcd1caaef11ecd2ba96f405845e67a5dd4e Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 7 Mar 2024 12:43:25 +0800 Subject: [PATCH] feat support stripped --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34bcff3..36e067b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD_EXTENSIONS OFF) option(SLED_BUILD_BENCHMARK "Build benchmark" OFF) option(SLED_BUILD_TESTS "Build tests" OFF) +option(SLED_LOCATION_STRIPPED_PATH "" "src/base/location.cc") set(BUILD_STATIC ON) set(BUILD_RTTR_DYNAMIC OFF) @@ -21,6 +22,9 @@ endif() if (NOT TARGET fmt) add_subdirectory(3party/fmt EXCLUDE_FROM_ALL) endif() +if (SLED_LOCATION_STRIPPED_PATH) + target_compile_definitions(sled PRIVATE __SLED_LOCATION_STRIPPED_PATH="${SLED_LOCATION_STRIPPED_PATH}") +endif() # add_subdirectory(3party/eigen EXCLUDE_FROM_ALL) target_include_directories(sled PUBLIC 3party/eigen) target_sources(