diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-06-03 15:44:32 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2022-06-07 10:06:32 +0200 |
commit | 6c7c022b194ea7f0f4a2e8ab5835c5688a2b88d4 (patch) | |
tree | 449383f6fa00a4861f10ada00d4bf3c767b561ec /win | |
parent | 15fc3e2ab14074583eb917aae9d6ebaeae9b6154 (diff) | |
download | tigervnc-6c7c022b194ea7f0f4a2e8ab5835c5688a2b88d4.tar.gz tigervnc-6c7c022b194ea7f0f4a2e8ab5835c5688a2b88d4.zip |
Avoid temporary cmake variables
Modern cmake has better support for adding source files and libraries
incrementally, so let's use that to clean things up.
Diffstat (limited to 'win')
-rw-r--r-- | win/rfb_win32/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/win/rfb_win32/CMakeLists.txt b/win/rfb_win32/CMakeLists.txt index 305247a8..682873e7 100644 --- a/win/rfb_win32/CMakeLists.txt +++ b/win/rfb_win32/CMakeLists.txt @@ -1,4 +1,4 @@ -set(RFB_WIN32_SOURCES +add_library(rfb_win32 STATIC AboutDialog.cxx Clipboard.cxx CurrentUser.cxx @@ -32,9 +32,7 @@ set(RFB_WIN32_SOURCES WMWindowCopyRect.cxx) if(BUILD_WINVNC) - set(RFB_WIN32_SOURCES ${RFB_WIN32_SOURCES} CleanDesktop.cxx) + target_sources(rfb_win32 PRIVATE ${RFB_WIN32_SOURCES} CleanDesktop.cxx) endif() -add_library(rfb_win32 STATIC ${RFB_WIN32_SOURCES}) - target_link_libraries(rfb_win32 user32.lib comctl32.lib wtsapi32.lib version.lib) |