!40 修复用CMake构建时不指定CMAKE_BUILD_TYPE参数报错问题

Merge pull request !40 from Joker2770/cmake_fix20230208
This commit is contained in:
爬山虎 2023-02-08 09:07:21 +00:00 committed by Gitee
commit f48ee6b5b3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ ${PROJECT_SOURCE_DIR}/scintilla/include)
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Concurrent Qt5::Network Qt5::PrintSupport)
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
if(($ENV{CMAKE_BUILD_TYPE}) STREQUAL "Release")
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "qmyedit_qt5")
else()
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "qmyedit_qt5d")