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)