From 21bcd0780c0b4e93af0fdc50bea857b466a126ad Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 27 Jan 2024 12:31:21 -0600 Subject: [PATCH] fix unittests build on mingw64 --- cmake/unittests.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/unittests.cmake b/cmake/unittests.cmake index 5df35488..69b09bba 100644 --- a/cmake/unittests.cmake +++ b/cmake/unittests.cmake @@ -60,6 +60,10 @@ if (REPERTORY_ENABLE_TESTING) ) endif() + target_compile_definitions(unittests PUBLIC + REPERTORY_TESTING + ) + target_include_directories(unittests PUBLIC ${GTEST_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/tests