-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spdlog: Use system library if requested
Signed-off-by: František Zatloukal <[email protected]>
- Loading branch information
1 parent
494a052
commit 1ae17d0
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: MIT | ||
|
||
add_library(utils | ||
STATIC | ||
"logging.h" | ||
"logging.cpp" | ||
) | ||
set(logging_files logging.h logging.cpp) | ||
add_library(utils STATIC ${logging_files}) | ||
|
||
target_include_directories(utils PRIVATE ${CMAKE_SOURCE_DIR}/third_party/spdlog_headers/) | ||
if(SYSTEM_SPDLOG) | ||
target_link_libraries(utils PUBLIC spdlog::spdlog) | ||
else() | ||
target_include_directories(utils PUBLIC ${PROJECT_SOURCE_DIR}/third_party/spdlog_headers/) | ||
endif() | ||
set_property(TARGET utils PROPERTY POSITION_INDEPENDENT_CODE ON) |