Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-02-18 17:15:24 +0300
committerHannah von Reth <vonreth@kde.org>2022-02-21 12:13:15 +0300
commit8a745dd937bea883470344b513e0a1234acbf595 (patch)
treeae0c69e74d8ad37c2ee89a585ca9538f74d88958 /test/testutils/CMakeLists.txt
parentc44d548cc9fa5a16ccba84f5585cd4a8207dba0f (diff)
Raise the required cmake version
CMake is a buildtime dpendency and even available as a prebuild for most platforms. Requireing 3.16 enables us to use target_sources in subdirectories witout the need to specify absolute paths. This also removes the warning: CMake Warning (dev) at D:/.../modules/ECMFindModuleHelpers.cmake:112 (message): Your project should require at least CMake 3.16.0 to use FindIcoTool.cmake
Diffstat (limited to 'test/testutils/CMakeLists.txt')
-rw-r--r--test/testutils/CMakeLists.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/testutils/CMakeLists.txt b/test/testutils/CMakeLists.txt
index a27fa720b..ba8012070 100644
--- a/test/testutils/CMakeLists.txt
+++ b/test/testutils/CMakeLists.txt
@@ -3,10 +3,5 @@ target_link_libraries(syncenginetestutils PUBLIC owncloudCore Qt5::Test)
# testutilsloader.cpp uses Q_COREAPP_STARTUP_FUNCTION which can't used reliably in a static lib
# therefore we compile it in the tests
-if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
- add_library(testutilsloader OBJECT testutilsloader.cpp)
- target_link_libraries(testutilsloader PUBLIC owncloudCore)
-else()
- add_library(testutilsloader INTERFACE)
- target_sources(testutilsloader INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/testutilsloader.cpp)
-endif()
+add_library(testutilsloader OBJECT testutilsloader.cpp)
+target_link_libraries(testutilsloader PUBLIC owncloudCore) \ No newline at end of file