mirror of https://gitee.com/cxasm/notepad--.git
!40 修复用CMake构建时不指定CMAKE_BUILD_TYPE参数报错问题
Merge pull request !40 from Joker2770/cmake_fix20230208
This commit is contained in:
commit
f48ee6b5b3
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue