From fa4844e168b0f33dd8e85fd02ae57cd836939747 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 22 Jan 2018 09:39:41 +0000 Subject: [PATCH] CMake: Fix test builds on MSVC (#4131) * Add test dependency missing for MSVC builds. * Appveyor builds tests and tools --- appveyor.yml | 4 +++- tests/OSSupport/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 1f3f30911..61f562dc7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,12 +1,14 @@ version: 1.0.{build} configuration: Debug clone_depth: 50 + before_build: - echo %TIME% - git submodule update --init - echo %TIME% -- cmake -G "Visual Studio 12" . +- cmake -G "Visual Studio 12" -DSELF_TEST=1 -DBUILD_TOOLS=1 . - echo %TIME% + build: project: Cuberite.sln parallel: true diff --git a/tests/OSSupport/CMakeLists.txt b/tests/OSSupport/CMakeLists.txt index 938538f14..60c68c472 100644 --- a/tests/OSSupport/CMakeLists.txt +++ b/tests/OSSupport/CMakeLists.txt @@ -23,6 +23,7 @@ if (WIN32) ${OSSupport_SRCS} ${OSSupport_HDRS} ) + target_link_libraries(OSSupport PUBLIC fmt::fmt) endif() # Define individual tests: