From be82b6a6406daf130e700cd93a8d3c2b0e2faa93 Mon Sep 17 00:00:00 2001 From: Timm Ruppert Date: Mon, 2 Dec 2024 15:13:24 +0100 Subject: [PATCH] fix unit tests missing compile def Signed-off-by: Timm Ruppert --- tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 55f1bc1..0b27e10 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -20,6 +20,8 @@ add_executable( ${src_sources} ) target_link_libraries(unit_tests PRIVATE GTest::gtest_main) +# see src/CMakeLists.txt +target_compile_definitions(unit_tests PRIVATE OSI_TRACE_FILE_SPEC_VERSION="3.7.1") # Link against OSI made available by parent CMakeLists.txt if (LINK_WITH_SHARED_OSI)