From 6ef4c780eb8d7a8fd40aa1246b1478863baa8105 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Wed, 31 Jan 2024 13:53:40 +0900 Subject: [PATCH] fix define --- Sofa/framework/Testing/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sofa/framework/Testing/CMakeLists.txt b/Sofa/framework/Testing/CMakeLists.txt index cb95f754d14b..5076cf139173 100644 --- a/Sofa/framework/Testing/CMakeLists.txt +++ b/Sofa/framework/Testing/CMakeLists.txt @@ -30,7 +30,7 @@ if(NOT googletest_FOUND AND SOFA_ALLOW_FETCH_DEPENDENCIES) add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR}) - target_compile_options(gtest_main PRIVATE "-GTEST_LINKED_AS_SHARED_LIBRARY=0") + target_compile_options(gtest_main PRIVATE "-DGTEST_LINKED_AS_SHARED_LIBRARY=0") target_compile_options(gtest PRIVATE "-DGTEST_CREATE_SHARED_LIBRARY=1") include(SofaMacros)