Skip to content

Commit

Permalink
HOTFIX: Get executable name for installed CTest (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 authored Oct 12, 2022
1 parent a63616a commit 00d4fac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ function(add_rocwmma_test TEST_TARGET TEST_SOURCE)
COMPONENT tests
)

get_target_property(EXE_NAME ${TEST_TARGET} RUNTIME_OUTPUT_NAME)
if(EXE_NAME STREQUAL "EXE_NAME-NOTFOUND")
get_target_property(EXE_NAME ${TEST_TARGET} OUTPUT_NAME)
if(EXE_NAME STREQUAL "EXE_NAME-NOTFOUND")
set(EXE_NAME "${TEST_TARGET}")
endif()
endif()
file(APPEND "${INSTALL_TEST_FILE}" "add_test(${TEST_TARGET} \"../${EXE_NAME}\")\n")
endfunction()

Expand Down

0 comments on commit 00d4fac

Please sign in to comment.