Skip to content

Commit

Permalink
cmake: don't set debug build postfix if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro authored Apr 9, 2024
1 parent 7aa5103 commit 7f2d765
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ if(UNIX OR MINGW)
endif()
endif()
elseif(MSVC)
set(CMAKE_DEBUG_POSTFIX "d")
if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
set(CMAKE_DEBUG_POSTFIX "d")
endif()
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)

Expand Down

0 comments on commit 7f2d765

Please sign in to comment.