From dbad46c5161cf4598d8f731bf61d25b54cc2ed92 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 24 Oct 2019 17:49:23 +0100 Subject: [PATCH] Correct ordering of project and includes. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cdac4a27..172928ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,10 @@ set(GETDNS_VERSION_CURRENT 11) set(GETDNS_VERSION_REVISION 2) set(GETDNS_VERSION_AGE 1) +project(getdns VERSION ${PACKAGE_VERSION} LANGUAGES C) + +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + include(CheckCSourceRuns) include(CheckFunctionExists) include(CheckIncludeFile) @@ -49,10 +53,6 @@ include(CTest) include(GNUInstallDirs) include(TestBigEndian) -project(getdns VERSION ${PACKAGE_VERSION} LANGUAGES C) - -list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") - # Directories if (DEFINED CMAKE_INSTALL_FULL_RUNSTATEDIR) set(RUNSTATEDIR "${CMAKE_INSTALL_FULL_RUNSTATEDIR}")