mirror of https://github.com/mgba-emu/mgba.git
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:
parent
36fb807687
commit
d04767eae2
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue