all repos — mgba @ d04767eae23748c6937709b4f371702b84153675

mGBA Game Boy Advance Emulator

All: Don't use enable_language(CXX) in the Qt subdirectory.

Doing so causes CMake to create a pseudo-subproject when generating
build files, which can cause all sorts of random, hard-to-diagnose issues.
waddlesplash waddlesplash@gmail.com
Tue, 16 May 2017 16:52:18 -0400
commit

d04767eae23748c6937709b4f371702b84153675

parent

36fb807687480a75085559889d4796e093185d1b

2 files changed, 2 insertions(+), 5 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -1,5 +1,5 @@

-cmake_minimum_required(VERSION 2.6) -project(mGBA C) +cmake_minimum_required(VERSION 2.8.11) +project(mGBA) set(BINARY_NAME mgba CACHE INTERNAL "Name of output binaries") if(NOT MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-missing-field-initializers -std=c99")
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -1,6 +1,3 @@

-cmake_minimum_required(VERSION 2.8.11) -enable_language(CXX) - if(NOT MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") endif()