summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2023-01-29 14:37:54 -0600
committerTellowKrinkle <tellowkrinkle@gmail.com>2023-01-29 14:37:54 -0600
commit07e98c77908773e60875fa71195982fb16bd2f06 (patch)
tree3c8e4f521c12e9cf4700429546d714e3479d957e /Source
parentd380d43209ce046d30af398ca3ecfc6fdd5a47d1 (diff)
CMake: Use imported target for fmt in tests
This properly adds the header include paths when using system fmt
Diffstat (limited to 'Source')
-rw-r--r--Source/UnitTests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/UnitTests/CMakeLists.txt b/Source/UnitTests/CMakeLists.txt
index c3a3f23782..d1294d4248 100644
--- a/Source/UnitTests/CMakeLists.txt
+++ b/Source/UnitTests/CMakeLists.txt
@@ -5,7 +5,7 @@ add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND})
string(APPEND CMAKE_RUNTIME_OUTPUT_DIRECTORY "/Tests")
add_library(unittests_main OBJECT UnitTestsMain.cpp)
-target_link_libraries(unittests_main PUBLIC fmt gtest)
+target_link_libraries(unittests_main PUBLIC fmt::fmt gtest)
# Since this is a Core dependency, it can't be linked as a normal library.
# Otherwise CMake inserts the library after core, but before other core
# dependencies like videocommon which also use Host_ functions, which makes the