mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-01-08 10:27:49 +08:00
Bug 5532074 Modify the filesystem compatibility from GCC 7.x to 8.x for RHEL 8.10
This commit is contained in:
parent
cf01c5bb28
commit
fd6707ccaa
@ -54,8 +54,8 @@
|
||||
#endif
|
||||
#include <vector>
|
||||
|
||||
// Simple filesystem compatibility for GCC 7.x
|
||||
#if defined(__GNUC__) && __GNUC__ < 8
|
||||
// Simple filesystem compatibility for GCC 8.x
|
||||
#if defined(__GNUC__) && __GNUC__ < 9
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
inline std::string getSocketFolder() {
|
||||
|
||||
@ -41,7 +41,7 @@ if(${OpenGL_FOUND})
|
||||
|
||||
target_compile_options(particles PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CUDA>:--extended-lambda>
|
||||
$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler="/Zc:preprocessor">
|
||||
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<BOOL:${MSVC}>>:-Xcompiler="/Zc:preprocessor">
|
||||
)
|
||||
|
||||
target_compile_features(particles PRIVATE cxx_std_17 cuda_std_17)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user