From 748608275e142428a2f2107d647b3a88c9cf48a0 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 1 Nov 2023 19:43:42 +0100 Subject: cmake: create simulations list instead listing simulation directly in the foreach loop, fix test cmake file --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1d6b55c..9c76576 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -19,11 +19,11 @@ macro(test_int name kind) add_executable(${target} ${name}.cc) target_include_directories(${target} PRIVATE ${src}) target_compile_options(${target} PRIVATE -Wall -Wextra) - if(${kind} STREQUAL "gtest") + if("${kind}" STREQUAL "gtest") target_link_libraries(${target} GTest::gmock_main) target_link_libraries(${target} SystemC::systemc) gtest_discover_tests(${target}) - elseif(${kind} STREQUAL "sim") + elseif("${kind}" STREQUAL "sim") target_link_libraries(${target} SystemC::systemc) add_test(NAME ${target} COMMAND ${target}) else() -- cgit v1.2.3