Add ENABLE_VERSION macro check. (#4100)

This commit is contained in:
PioLing
2025-01-06 15:27:14 +08:00
committed by GitHub
parent 9863f9c160
commit b7b7989fae
2 changed files with 7 additions and 3 deletions

View File

@@ -208,8 +208,8 @@ elseif(WIN32)
# warning C4530: C++ exception handler used, but unwind semantics are not enabled.
"/EHsc")
# disable Windows logo
list(APPEND COMPILE_OPTIONS_DEFAULT "/nologo")
list(APPEND CMAKE_STATIC_LINKER_FLAGS "/nologo")
string(REPLACE "/nologo" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_STATIC_LINKER_FLAGS "")
endif()
endif()