From 09a6ecc65dd01863be727b287de6596c7ab0e336 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Fri, 10 Jan 2025 19:35:34 -0800 Subject: [PATCH] msvs Signed-off-by: Larry Gritz --- src/cmake/compiler.cmake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cmake/compiler.cmake b/src/cmake/compiler.cmake index 524a5f680..e7edb4db7 100644 --- a/src/cmake/compiler.cmake +++ b/src/cmake/compiler.cmake @@ -37,10 +37,13 @@ if (CMAKE_CXX_STANDARD VERSION_LESS CMAKE_CXX_MINIMUM) message (FATAL_ERROR "C++${CMAKE_CXX_STANDARD} is not supported, minimum is C++${CMAKE_CXX_MINIMUM}") endif () # Remember the -std flags we need will be used later for custom Cuda builds -set (CSTD_FLAGS "") -if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_INTEL) +# set (CSTD_FLAGS "") +# if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_INTEL) set (CSTD_FLAGS "-std=c++${CMAKE_CXX_STANDARD}") -endif () +# elseif (MSVC) +# set (CSTD_FLAGS "/std:c++${CMAKE_CXX_STANDARD}") +# endif () +message (STATUS "CSTD_FLAGS = ${CSTD_FLAGS}") ###########################################################################