Browse Source

CMake: enable only C++, if possible.

Speeds up the configure run quite a bit, especially on Emscripten.
pull/216/head
Vladimír Vondruš 9 years ago
parent
commit
5f6c032275
  1. 8
      CMakeLists.txt

8
CMakeLists.txt

@ -24,7 +24,13 @@
#
cmake_minimum_required(VERSION 2.8.12)
project(Magnum)
# Configuration fails on < 3.4 if only C++ is enabled (CheckFunctionExists
# macro called from FindX11)
if(NOT CMAKE_VERSION VERSION_LESS 3.4.0)
set(LANG CXX)
endif()
project(Magnum ${LANG})
# CMake policies: enable MACOSX_RPATH by default
if(POLICY CMP0042)

Loading…
Cancel
Save