Skip to content

Commit

Permalink
updated runtime libraries based on build type
Browse files Browse the repository at this point in the history
Signed-off-by: Dhruva21 <dhruva0400@gmail.com>
  • Loading branch information
Dhruva21 committed Nov 10, 2023
1 parent 9fe2e72 commit c2c13bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
ADD_COMPILE_OPTIONS(-m32 -march=i586)
endif()

SET(CMAKE_C_STANDARD_LIBRARIES "Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib ws2_32.lib")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
SET(CMAKE_C_STANDARD_LIBRARIES "Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib ws2_32.lib")
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
SET(CMAKE_C_STANDARD_LIBRARIES "Kernel32.lib MSVCRTD.lib vcruntime.lib ucrt.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib ws2_32.lib")
endif()

elseif(TOOLCHAIN STREQUAL "ARM_DS2022")
SET(CMAKE_C_COMPILER "armclang.exe")
Expand Down

0 comments on commit c2c13bc

Please sign in to comment.