Skip to content

Commit

Permalink
Fix:build:do not request CXX if explicitly disabled
Browse files Browse the repository at this point in the history
Signed-off-by: mvglasow <michael -at- vonglasow.com>
  • Loading branch information
mvglasow authored and jkoan committed Feb 19, 2021
1 parent 093b653 commit f7f9b16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ cmake_minimum_required(VERSION 3.2)
set(MACOSX_BUNDLE_GUI_IDENTIFIER "org.navitproject.navit")
set(MACOSX_BUNDLE_BUNDLE_NAME "Navit")
message(STATUS "Building with CMake V${CMAKE_VERSION}")
project(navit C CXX)
if (DISABLE_CXX)
project(navit C)
else(DISABLE_CXX)
project(navit C CXX)
endif(DISABLE_CXX)

# Workaround for CMake issue 8345 / 9220, see http://trac.navit-project.org/ticket/1041
if(DEFINED CMAKE_CXX_COMPILER AND CMAKE_CXX_COMPILER MATCHES "^$")
Expand Down

0 comments on commit f7f9b16

Please sign in to comment.