Skip to content

Commit

Permalink
fix:Define to only search for Python2 as Navit is not compatible with…
Browse files Browse the repository at this point in the history
… Python 3
  • Loading branch information
jkoan committed Dec 29, 2024
1 parent 6d4494b commit e601a8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.12)

set(MACOSX_BUNDLE_GUI_IDENTIFIER "org.navitproject.navit")
set(MACOSX_BUNDLE_BUNDLE_NAME "Navit")
Expand Down Expand Up @@ -236,7 +236,7 @@ find_package(GLUT)
find_package(GTK2 2.6 COMPONENTS gtk)
find_package(Gettext)
find_package(PNG)
find_package(PythonLibs)
find_package(Python2 COMPONENTS Development)
find_package(Threads)

#Qt detection
Expand Down Expand Up @@ -491,8 +491,8 @@ if (LIBGARMIN_FOUND)
set_with_reason(map/garmin "Garmin library found" TRUE ${LIBGARMIN_LDFLAGS})
endif(LIBGARMIN_FOUND)

if(PYTHONLIBS_FOUND)
set_with_reason(binding/python "python libraries [${PYTHONLIBS_VERSION_STRING}] found" TRUE ${PYTHON_LIBRARIES})
if(Python2_FOUND)
set_with_reason(binding/python "python libraries [${Python2_VERSION}] found" TRUE ${Python2_LIBRARIES})
endif()

if (HAVE_LIBSPEECHD)
Expand Down

0 comments on commit e601a8d

Please sign in to comment.