aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-05 15:13:26 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-05 15:21:34 +0200
commit2923ad59f9d2598418e7ba6369cb9fafc21cea09 (patch)
treeecb4b76ead02fec7cd4df77af5d28c95561ecbe5 /CMakeLists.txt
parent556ad59a5a11b1bf8f633f7ff36c09ea40ed4dac (diff)
downloadlibssh-2923ad59f9d2598418e7ba6369cb9fafc21cea09.tar.gz
libssh-2923ad59f9d2598418e7ba6369cb9fafc21cea09.tar.xz
libssh-2923ad59f9d2598418e7ba6369cb9fafc21cea09.zip
cmake: Update defaults
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 30be644b..bd3f6932 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,14 @@
cmake_minimum_required(VERSION 3.3.0)
cmake_policy(SET CMP0048 NEW)
+# Specify search path for CMake modules to be loaded by include()
+# and find_package()
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
+
+# Add defaults for cmake
+# Those need to be set before the project() call.
+include(DefineCMakeDefaults)
+
project(libssh VERSION 0.8.90 LANGUAGES C)
# global needed variable
@@ -17,12 +25,8 @@ set(LIBRARY_VERSION "4.6.0")
set(LIBRARY_SOVERSION "4")
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
-set(CMAKE_MODULE_PATH
- ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules
-)
# add definitions
-include(DefineCMakeDefaults)
include(DefinePlatformDefaults)
include(DefineInstallationPaths)
include(DefineOptions.cmake)