opt: windows build type & use generator expression

This commit is contained in:
Kingtous
2022-09-12 18:04:00 +08:00
parent a957f894b7
commit 74201b71b4
3 changed files with 8 additions and 20 deletions

View File

@@ -125,7 +125,7 @@ foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
endforeach(bundled_library)
# flutter_rust_bridge
set(RUSTDESK_LIB_BUILD_TYPE debug)
set(RUSTDESK_LIB_BUILD_TYPE $<IF:$<CONFIG:Debug>,debug,release>)
string(TOLOWER ${CMAKE_BUILD_TYPE} ${RUSTDESK_LIB_BUILD_TYPE})
message(STATUS "rustdesk lib build type: ${RUSTDESK_LIB_BUILD_TYPE}")