Skip to content

Commit

Permalink
CUDA only supports x64 compilation; exclude the Cuda example from non…
Browse files Browse the repository at this point in the history
…-x64 builds (#110)
  • Loading branch information
MarkSchofield authored Sep 17, 2024
1 parent 18a384f commit b44662d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ add_subdirectory(CommandLineC)
add_subdirectory(SharedLibrary)
add_subdirectory(WindowsApplication)

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
if((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") AND (CMAKE_SYSTEM_PROCESSOR STREQUAL AMD64))
if(DEFINED ENV{CUDA_PATH})
add_subdirectory(CommandLineCuda)
else()
Expand Down

0 comments on commit b44662d

Please sign in to comment.