From 989235afc8f1f90c9c8a35767bc289a00d4f3c4d Mon Sep 17 00:00:00 2001 From: Alphagocc Date: Wed, 17 Aug 2022 22:38:32 +0800 Subject: [PATCH] fix(build): link userenv lib --- CMakeLists.txt | 4 ++++ makespec/BUILDVERSION | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e81842d4..61a6d1ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -264,6 +264,10 @@ target_precompile_headers(lemon PUBLIC ${CMAKE_SOURCE_DIR}/src/pch.h) target_link_libraries(lemon PRIVATE ${LEMON_QT_LIBS} lemon-core lemon-base SingleApplication::SingleApplication) +if(WIN32 AND NOT LEMON_QT6) + target_link_libraries(lemon PRIVATE userenv) +endif() + if(ENABLE_LTO) include(CheckIPOSupported) check_ipo_supported(RESULT LTO_SUPPORTED OUTPUT error) diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index 7c022aed..0c56bea5 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -232 +233