File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11subdirs (lib)
22
3- add_library (Version STATIC Version .cpp)
4- set_target_properties (Version PROPERTIES COMPILE_DEFINITIONS "PR_DOWNLOADER_VERSION=${PR_DOWNLOADER_VERSION} " )
5-
6-
73if (PRD_ARCHIVE_SUPPORT)
84 set (archivessrc FileSystem/SevenZipArchive.cpp FileSystem/ZipArchive.cpp)
95 set (archiveslib pr-7z)
@@ -32,9 +28,12 @@ add_library(Downloader STATIC
3228 FileSystem/IHash.cpp
3329 Util.cpp
3430 Logger.cpp
31+ Version .cpp
3532 ${archivessrc}
3633)
3734
35+ set_source_files_properties (Version .cpp PROPERTIES COMPILE_DEFINITIONS "PR_DOWNLOADER_VERSION=${PR_DOWNLOADER_VERSION} " )
36+
3837IF (WIN32 )
3938 SET (WIN32LIBS ws2_32 mswsock)
4039ENDIF ()
@@ -55,7 +54,6 @@ target_link_libraries(Downloader
5554 pr-sha1
5655 bencode
5756 ${archiveslib}
58- Version
5957)
6058
6159if (PRD_ARCHIVE_SUPPORT)
Original file line number Diff line number Diff line change 11/* This file is part of pr-downloader (GPL v2 or later), see the LICENSE file */
22
33#ifndef PR_DOWNLOADER_VERSION
4- #error PR_DOWNLOADER_VERSION isn not defined
4+ #error PR_DOWNLOADER_VERSION is not defined
55#else
66
77#define QUOTEME_ (x ) #x
You can’t perform that action at this time.
0 commit comments