Skip to content

Commit

Permalink
Regards #505: Only build jitify on Windows with C++17, so as not to g…
Browse files Browse the repository at this point in the history
…et weird constexpr-correctness complaints
  • Loading branch information
eyalroz committed Apr 22, 2023
1 parent 1dc2731 commit 7024e2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ enable_language(CXX)
enable_language(CUDA)

if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus")
add_compile_definitions("$<$<COMPILE_LANGUAGE:C,CXX>:_CRT_SECURE_NO_DEPRECATE>")
add_compile_definitions("$<$<COMPILE_LANGUAGE:C,CXX>:_CRT_SECURE_NO_WARNINGS>")
add_compile_definitions("$<$<COMPILE_LANGUAGE:C,CXX>:_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING>")
Expand Down

0 comments on commit 7024e2e

Please sign in to comment.