Skip to content

Commit

Permalink
minor syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
evanramos-nvidia committed Jul 30, 2024
1 parent 0cf410b commit c4591ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(CMAKE_C_STANDARD 90)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
if(${MSVC})
if(MSVC)
# Must use - instead of / for option prefix when using NVCC, because it forwards args
# it doesn't know to the host compiler, but being a UNIX-heritage program, it thinks
# an argument like "/nologo" is an input file path. Luckily, MSVC accepts - prefixes.
Expand All @@ -21,7 +21,7 @@ if(${MSVC})
endif()

# Build with minimal or no dependencies on installed C/C++ runtime libraries
if (${MSVC})
if(MSVC)
# For Non-debug, change /MD (MultiThreadedDLL) to /MT (MultiThreaded)
# For Debug, change /MDd (MultiThreadedDebugDLL) to /MTd ((MultiThreadedDebug)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
Expand All @@ -37,7 +37,7 @@ else()
endif()

# Compiler-specific idiosyncracies
if(${MSVC})
if(MSVC)
# Must use - instead of / for option prefix when using NVCC, because it forwards args
# it doesn't know to the host compiler, but being a UNIX-heritage program, it thinks
# an argument like "/nologo" is an input file path. Luckily, MSVC accepts - prefixes.
Expand Down

0 comments on commit c4591ba

Please sign in to comment.