Skip to content

Commit

Permalink
Update CMakeLists.txt for AppleClang (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Rutherford authored Nov 28, 2023
1 parent a86b5a5 commit 4226902
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ exago_add_library(
)

# Going to have this target supply/propogate compiler flags and see if that
# works -Wpedantic for CUDA compile options added a significant amount of new
# errors, so leaving out for now -Werror is problematic on MacOS
if(APPLE)
# works. -Wpedantic for CUDA compile options added a significant amount of new
# errors, so leaving out for now. -Werror is problematic on MacOS
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang")
set(CUDA_COMPILE_OPTIONS
"$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CONFIG:DEBUG>>:SHELL:--compiler-options -Wall,-Wextra>"
)
Expand Down

0 comments on commit 4226902

Please sign in to comment.