Skip to content

Commit d084274

Browse files
committed
Added support for "CMAKE_MSVC_RUNTIME_LIBRARY" coming from the command line
1 parent 781699c commit d084274

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

CMakeLists.txt

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ set(CMAKE_CXX_STANDARD 17)
2222
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2323
set(CMAKE_C_STANDARD 99)
2424

25-
if(MSVC)
26-
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
27-
endif()
28-
2925
# Download dependencies (Packman)
3026
if(WIN32)
3127
set(PACKMAN_EXT ".cmd")

External/NRD

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ All-in-one repository including all relevant pieces to see [*NRD (NVIDIA Real-ti
2525
- Build (variant 1) - using *Git* and *CMake* explicitly
2626
- Clone project and init submodules
2727
- Generate and build project using *CMake*
28+
- To build the binary with static MSVC runtime, add `-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>"` parameter when deploying the project
2829
- Build (variant 2) - by running scripts:
2930
- Run `1-Deploy`
3031
- Run `2-Build`

0 commit comments

Comments
 (0)