Merge pull request #11510 from TellowKrinkle/FmtImport

CMake: Use imported target for fmt in tests
This commit is contained in:
Admiral H. Curtiss 2023-01-30 09:10:22 +01:00 committed by GitHub
commit fa1fec7d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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