File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ else()
78
78
endif ()
79
79
add_definitions (-DLOADER_VERSION_SHA="${VERSION_SHA} " )
80
80
81
- include_directories ("${CMAKE_CURRENT_SOURCE_DIR} /third_party/spdlog_headers" )
81
+ find_package (spdlog CONFIG)
82
+ if (NOT spdlog_FOUND)
83
+ include_directories ("${CMAKE_CURRENT_SOURCE_DIR} /third_party/spdlog_headers" )
84
+ endif ()
82
85
83
86
# Update other relevant variables to include the patch
84
87
set (PROJECT_VERSION "${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} .${PROJECT_VERSION_PATCH} " )
Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ add_library(utils
7
7
"logging.cpp"
8
8
)
9
9
10
- target_include_directories (utils PRIVATE ${CMAKE_SOURCE_DIR} /third_party/spdlog_headers/)
10
+ if (NOT spdlog_FOUND)
11
+ target_include_directories (utils PRIVATE ${CMAKE_SOURCE_DIR} /third_party/spdlog_headers/)
12
+ endif ()
13
+
You can’t perform that action at this time.
0 commit comments