Fix warning C4251: class fmt::v8::file needs to have dll-interface (#2797)

* Fix warning C4251: class fmt::v8::file needs to have dll-interface

* Add CMake target dependency between test-main and fmt
This commit is contained in:
Boris Dalstein
2022-03-07 12:09:48 -08:00
committed by GitHub
parent 8d4f3e91b2
commit e3d688e79a
2 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ set(TEST_MAIN_SRC test-main.cc gtest-extra.cc gtest-extra.h util.cc)
add_library(test-main STATIC ${TEST_MAIN_SRC})
target_include_directories(test-main PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)
target_link_libraries(test-main gtest)
target_link_libraries(test-main gtest fmt)
include(CheckCXXCompilerFlag)