Skip to content

Commit

Permalink
Enable assertions for CCCL users in CMake Debug builds (NVIDIA#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored and davebayer committed Dec 2, 2024
1 parent b9f61d9 commit 7cfdbf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cmake/libcudacxx/libcudacxx-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set(_libcudacxx_INCLUDE_DIR "${_libcudacxx_VERSION_INCLUDE_DIR}"
)
unset(_libcudacxx_VERSION_INCLUDE_DIR CACHE) # Clear tmp variable from cache
target_include_directories(_libcudacxx_libcudacxx INTERFACE "${_libcudacxx_INCLUDE_DIR}")
target_compile_definitions(_libcudacxx_libcudacxx INTERFACE $<$<CONFIG:Debug>:CCCL_ENABLE_ASSERTIONS>)

#
# Standardize version info
Expand Down

0 comments on commit 7cfdbf0

Please sign in to comment.