Skip to content

Commit dfb39db

Browse files
committed
remove not needed target Version
1 parent bdfb029 commit dfb39db

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
subdirs(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-
73
if (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+
3837
IF (WIN32)
3938
SET(WIN32LIBS ws2_32 mswsock)
4039
ENDIF ()
@@ -55,7 +54,6 @@ target_link_libraries(Downloader
5554
pr-sha1
5655
bencode
5756
${archiveslib}
58-
Version
5957
)
6058

6159
if(PRD_ARCHIVE_SUPPORT)

src/Version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

0 commit comments

Comments
 (0)