Skip to content

Commit

Permalink
Fixes #490: Switch to depending on CUDA::nvtx3 (and assume the CMak…
Browse files Browse the repository at this point in the history
…e version is >= 3.25)
  • Loading branch information
eyalroz committed Apr 15, 2023
1 parent e496a9e commit d6119f7
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 @@ -4,7 +4,7 @@
# your platform. They are not finicky with library dependencies, so
# compatability is very likely. Also, the package's CMake binary will
# not mistake any other local CMake-related files for its own.
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")

# -----------------------------------
Expand Down Expand Up @@ -80,7 +80,7 @@ if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.1)
target_link_libraries(CUDA::nvptxcompiler_static INTERFACE Threads::Threads) # Because the NVIDIA PTX compiler itself uses threads
endif()

target_link_libraries(caw_nvtx INTERFACE cuda-api-wrappers::runtime-and-driver CUDA::nvToolsExt ${CMAKE_DL_LIBS}) # libnvToolsExt uses dlclose
target_link_libraries(caw_nvtx INTERFACE cuda-api-wrappers::runtime-and-driver CUDA::nvtx3 ${CMAKE_DL_LIBS}) # libnvToolsExt uses dlclose

# Note: This is a bit like a poor man's configure.h file;
# but for two settings I won't bother creating one of those
Expand Down

0 comments on commit d6119f7

Please sign in to comment.