Skip to content

Commit

Permalink
CMakeList.txt: suggest setting CUDA architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jan 17, 2025
1 parent 87db282 commit 5fb5d12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if(WIN32)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()

if (CMAKE_CUDA_ARCHITECTURES MATCHES OFF)
message(NOTICE "\nYou may want to set CUDA architecture, suggested `-DCMAKE_CUDA_ARCHITECTURES=native`\n")
endif()

cmake_policy(SET CMP0010 NEW) # error on undefined variable

set(CPACK_PACKAGE_INSTALL_DIRECTORY "gpujpeg") # may be removed when version will be explicitly defined
Expand Down

0 comments on commit 5fb5d12

Please sign in to comment.