Correct ordering of project and includes.

This commit is contained in:
Jim Hague 2019-10-24 17:49:23 +01:00
parent 9dcd8482f5
commit dbad46c516
1 changed files with 4 additions and 4 deletions

View File

@ -38,6 +38,10 @@ set(GETDNS_VERSION_CURRENT 11)
set(GETDNS_VERSION_REVISION 2) set(GETDNS_VERSION_REVISION 2)
set(GETDNS_VERSION_AGE 1) 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(CheckCSourceRuns)
include(CheckFunctionExists) include(CheckFunctionExists)
include(CheckIncludeFile) include(CheckIncludeFile)
@ -49,10 +53,6 @@ include(CTest)
include(GNUInstallDirs) include(GNUInstallDirs)
include(TestBigEndian) include(TestBigEndian)
project(getdns VERSION ${PACKAGE_VERSION} LANGUAGES C)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# Directories # Directories
if (DEFINED CMAKE_INSTALL_FULL_RUNSTATEDIR) if (DEFINED CMAKE_INSTALL_FULL_RUNSTATEDIR)
set(RUNSTATEDIR "${CMAKE_INSTALL_FULL_RUNSTATEDIR}") set(RUNSTATEDIR "${CMAKE_INSTALL_FULL_RUNSTATEDIR}")