Skip to content

Commit

Permalink
Merge pull request #49 from psychocoderHPC/fix-wrongCMakeUsage
Browse files Browse the repository at this point in the history
fix wrong usage of `target_compile_definitions`
  • Loading branch information
psychocoderHPC authored Apr 29, 2024
2 parents 7d65804 + bc73d33 commit b13f189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ if(CUDA_MEMTEST_BACKEND STREQUAL "cuda")
else()
target_link_libraries(cuda_memtest PRIVATE hip::host)
target_link_libraries(cuda_memtest PRIVATE hip::device)
target_compile_definitions(cuda_memtest PRIVATE "$<$<COMPILE_LANGUAGE:CXX>:-D__HIP_PLATFORM_AMD__>")
target_compile_definitions(cuda_memtest PRIVATE "$<$<COMPILE_LANGUAGE:CXX>:__HIP_PLATFORM_AMD__>")
target_compile_definitions(cuda_memtest PRIVATE "ENABLE_NVML=0")
endif()

Expand Down Expand Up @@ -175,7 +175,7 @@ endif()

option(CUDA_MEMTEST_RELEASE "disable all runtime asserts" ON)
if(CUDA_MEMTEST_RELEASE)
target_compile_definitions(cuda_memtest PRIVATE -DNDEBUG)
target_compile_definitions(cuda_memtest PRIVATE NDEBUG)
endif(CUDA_MEMTEST_RELEASE)

################################################################################
Expand Down

0 comments on commit b13f189

Please sign in to comment.