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.
This commit is contained in:
waddlesplash 2017-05-16 16:52:18 -04:00 committed by endrift
parent 36fb807687
commit d04767eae2
2 changed files with 2 additions and 5 deletions

View File

@ -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")

View File

@ -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()