diff --git a/CMakeLists.txt b/CMakeLists.txt index 848efdb40d..df993037a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index d28fdb7cda..89972ec2e2 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -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" diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index dfbc69b9ec..c99b7cb26c 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -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) diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 7c4083f0cf..34d7f65dd2 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -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.")