diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-11-03 15:45:42 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-11-03 15:45:42 +0100 |
commit | 7b4c52e1e32803a6a9c6c19cfa3becf4f2dc623c (patch) | |
tree | 843c4b1a58de6d99f565527fb05dab248eecd306 /CMakeLists.txt | |
parent | 27f276ef13f49b4d21b6c17db5d4cd5e404ea259 (diff) | |
download | PrismLauncher-7b4c52e1e32803a6a9c6c19cfa3becf4f2dc623c.tar.gz PrismLauncher-7b4c52e1e32803a6a9c6c19cfa3becf4f2dc623c.tar.bz2 PrismLauncher-7b4c52e1e32803a6a9c6c19cfa3becf4f2dc623c.zip |
NOISSUE fix some small build issues
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e4aae98b..0cf93758 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,13 @@ cmake_minimum_required(VERSION 3.1) +if(WIN32) + # In Qt 5.1+ we have our own main() function, don't autolink to qtmain on Windows + cmake_policy(SET CMP0020 OLD) +endif() + +project(Launcher) +enable_testing() + string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BUILD_DIR}" IS_IN_SOURCE_BUILD) if(IS_IN_SOURCE_BUILD) message(FATAL_ERROR "You are building the Launcher in-source. Please separate the build tree from the source tree.") @@ -13,14 +21,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") endif() endif() -if(WIN32) - # In Qt 5.1+ we have our own main() function, don't autolink to qtmain on Windows - cmake_policy(SET CMP0020 OLD) -endif() - -project(Launcher) -enable_testing() - ##################################### Set CMake options ##################################### set(CMAKE_AUTOMOC ON) |