From 42e2e3a6be47fbbb285989b7a8056bb3bb3e2419 Mon Sep 17 00:00:00 2001 From: Aleksandr Orefkov Date: Wed, 12 Nov 2025 21:47:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D1=81=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 ++ bench/CMakeLists.txt | 2 +- tests/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2d3352..f1dcfba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,6 +99,7 @@ if(SIMSTR_BUILD_TESTS) googletest # Specify the commit you depend on and update it regularly. URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip + FIND_PACKAGE_ARGS NAMES GTest ) # For Windows: Prevent overriding the parent project's compiler/linker settings @@ -114,6 +115,7 @@ function(GBencmark) googlebench # Specify the commit you depend on and update it regularly. URL https://github.com/google/benchmark/archive/refs/tags/v1.7.0.zip + FIND_PACKAGE_ARGS NAMES benchmark ) set(CMAKE_CXX_STANDARD 20) set(BENCHMARK_ENABLE_TESTING OFF) diff --git a/bench/CMakeLists.txt b/bench/CMakeLists.txt index ee2797a..d42b96a 100644 --- a/bench/CMakeLists.txt +++ b/bench/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required (VERSION 3.15) add_executable(benchStr bench_str.cpp bench.h) -target_link_libraries(benchStr simstr_simstr benchmark::benchmark benchmark::benchmark_main) +target_link_libraries(benchStr simstr::simstr benchmark::benchmark benchmark::benchmark_main) add_executable(process_result process_result.cpp) target_link_libraries(process_result simstr_simstr) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 679f25f..daf74d8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,7 +3,7 @@ # add_executable(testStr test_str.cpp) -target_link_libraries(testStr simstr_simstr gtest_main) +target_link_libraries(testStr simstr::simstr GTest::gtest_main) add_test(NAME testStr COMMAND testStr) if (EMSCRIPTEN)