Skip to content

Commit 0d16933

Browse files
authored
chore: cleanup sources.cmake, gitignore, and cmake policy warnings (#880)
1 parent 5f041c6 commit 0d16933

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,10 @@ pytest.ini
8787
docker/downloads
8888
docker/config
8989
*.snap
90+
91+
# Ignore all dotfiles except those explicitly needed
92+
.*
93+
!/.gitignore
94+
!/.gitattributes
95+
!.github/
96+
!.github/**

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cmake_minimum_required(VERSION 3.13)
22

3+
if(POLICY CMP0167)
4+
cmake_policy(SET CMP0167 NEW)
5+
endif()
6+
37
if (PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
48
message(FATAL_ERROR "In-source builds are not allowed. You should create separate directory for build files.")
59
endif()

daemon/sources.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ set(SRC
99
${CMAKE_SOURCE_DIR}/daemon/extension/FeedScript.cpp
1010
${CMAKE_SOURCE_DIR}/daemon/extension/NzbScript.cpp
1111
${CMAKE_SOURCE_DIR}/daemon/extension/PostScript.cpp
12-
${CMAKE_SOURCE_DIR}/daemon/extension/PostScript.cpp
1312
${CMAKE_SOURCE_DIR}/daemon/extension/QueueScript.cpp
1413
${CMAKE_SOURCE_DIR}/daemon/extension/ScanScript.cpp
1514
${CMAKE_SOURCE_DIR}/daemon/extension/SchedulerScript.cpp
1615
${CMAKE_SOURCE_DIR}/daemon/extension/ScriptConfig.cpp
17-
${CMAKE_SOURCE_DIR}/daemon/extension/ScriptConfig.cpp
1816
${CMAKE_SOURCE_DIR}/daemon/extension/Extension.cpp
1917
${CMAKE_SOURCE_DIR}/daemon/extension/ExtensionLoader.cpp
2018
${CMAKE_SOURCE_DIR}/daemon/extension/ExtensionManager.cpp

0 commit comments

Comments
 (0)