From 16d5493d620105d2ba9c8a4ae223237a59becb96 Mon Sep 17 00:00:00 2001 From: Hugo Devillers Date: Tue, 2 Jul 2024 15:10:11 +0200 Subject: [PATCH] try to fix cmake boolean expr stuff --- test/thorin/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/thorin/CMakeLists.txt b/test/thorin/CMakeLists.txt index 55f2a22..306064e 100644 --- a/test/thorin/CMakeLists.txt +++ b/test/thorin/CMakeLists.txt @@ -11,8 +11,10 @@ endmacro() function(add_thorin_test) cmake_parse_arguments(test "NO_C;NO_LLVM;NO_SPIRV" "NAME;SOURCE_FILE" "ARGS" ${ARGN}) assign_me_bool(TEST_USE_C NOT ${test_NO_C}) - assign_me_bool(TEST_USE_LLVM ${Thorin_HAS_LLVM_SUPPORT} AND NOT ${test_NO_LLVM}) - assign_me_bool(TEST_USE_SPIRV ${Thorin_HAS_SPIRV_SUPPORT} AND NOT ${test_NO_SPIRV}) + assign_me_bool(HAS_LLVM ${Thorin_HAS_LLVM_SUPPORT}) + assign_me_bool(TEST_USE_LLVM ${HAS_LLVM} AND NOT ${test_NO_LLVM}) + assign_me_bool(HAS_SPIRV ${Thorin_HAS_SPIRV_SUPPORT}) + assign_me_bool(TEST_USE_SPIRV ${HAS_SPIRV} AND NOT ${test_NO_SPIRV}) add_test(NAME thorin_${test_NAME} COMMAND ${CMAKE_COMMAND} -DCOMPILER=$