Skip to content

Commit

Permalink
Enable assertions for CCCL users in CMake Debug builds
Browse files Browse the repository at this point in the history
Fixes: #2975
  • Loading branch information
bernhardmgruber committed Nov 28, 2024
1 parent d68714d commit b570c91
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 b570c91

Please sign in to comment.