Skip to content

Commit

Permalink
try to fix cmake boolean expr stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugobros3 committed Jul 2, 2024
1 parent 201a25d commit 16d5493
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/thorin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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=$<TARGET_FILE:artic>
Expand Down

0 comments on commit 16d5493

Please sign in to comment.