Only include FindPkgConfig once

This commit is contained in:
Ted John 2017-06-25 14:28:25 +01:00
parent c4ad6571ea
commit acf3b0cf83
4 changed files with 2 additions and 10 deletions

View File

@ -4,6 +4,7 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt")
endif()
include(FindPkgConfig)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

View File

@ -8,9 +8,6 @@ if (PORTABLE)
set(CMAKE_INSTALL_RPATH "$ORIGIN")
endif ()
# CMake dependencies
include(FindPkgConfig)
# Sources
file(GLOB_RECURSE OPENRCT2_CLI_SOURCES
"${CMAKE_CURRENT_LIST_DIR}/*.c"

View File

@ -1,4 +1,4 @@
# CMAKE project for openrct2-cli (UI build of OpenRCT2)
# CMAKE project for openrct2-ui (UI build of OpenRCT2)
cmake_minimum_required(VERSION 2.6)
if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt")
@ -11,9 +11,6 @@ if (PORTABLE)
set(CMAKE_INSTALL_RPATH "$ORIGIN")
endif ()
# CMake dependencies
include(FindPkgConfig)
# Third party libraries
PKG_CHECK_MODULES(SDL2 REQUIRED sdl2)
PKG_CHECK_MODULES(SPEEX REQUIRED speexdsp)

View File

@ -4,9 +4,6 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt")
endif ()
# CMake dependencies
include(FindPkgConfig)
# Options
option(STATIC "Create a static build.")
option(USE_MMAP "Use mmap to try loading rct2's data segment into memory.")