spark/env: Windows 标注,在生成的目标中区分 Debug(_d) 或 Release(_r)

This commit is contained in:
zinface 2023-04-02 00:36:48 +08:00
parent 248e3c1f04
commit d0506e058d
1 changed files with 6 additions and 0 deletions

View File

@ -14,3 +14,9 @@ macro(spark_debug_message)
message(${ARGN})
endif(SPARK_DEBUG_MESSAGE)
endmacro(spark_debug_message)
# Windows Debug(_d) Release(_r)
if(WIN32)
set(CMAKE_DEBUG_POSTFIX "_d")
set(CMAKE_RELEASE_POSTFIX "_r")
endif(WIN32)