Python not just for Windows...
This commit is contained in:
+10
-10
@@ -60,16 +60,16 @@ if(WIN32)
|
|||||||
set(WIN_EXTRA_LIBS_PATH "C:/Programs" CACHE PATH
|
set(WIN_EXTRA_LIBS_PATH "C:/Programs" CACHE PATH
|
||||||
"Base path to extra libs/headers on Windows (SDL & pthreads folders should be in here).")
|
"Base path to extra libs/headers on Windows (SDL & pthreads folders should be in here).")
|
||||||
list(APPEND CMAKE_PREFIX_PATH "${WIN_EXTRA_LIBS_PATH}" "${WIN_EXTRA_LIBS_PATH}/SDL") # hints for FindSDL
|
list(APPEND CMAKE_PREFIX_PATH "${WIN_EXTRA_LIBS_PATH}" "${WIN_EXTRA_LIBS_PATH}/SDL") # hints for FindSDL
|
||||||
|
endif()
|
||||||
# Python check
|
|
||||||
find_package("PythonInterp")
|
# Python check
|
||||||
if(PYTHONINTERP_FOUND)
|
find_package("PythonInterp")
|
||||||
message(STATUS "Python found, version: ${PYTHON_VERSION_STRING}")
|
if(PYTHONINTERP_FOUND)
|
||||||
get_filename_component(PYTHON_DIRECTORY ${PYTHON_EXECUTABLE} DIRECTORY)
|
message(STATUS "Python found, version: ${PYTHON_VERSION_STRING}")
|
||||||
else()
|
get_filename_component(PYTHON_DIRECTORY ${PYTHON_EXECUTABLE} DIRECTORY)
|
||||||
message(WARNING "Python not found! Most firmware and simu flavors not buildable.")
|
else()
|
||||||
set(LUA NO)
|
message(WARNING "Python not found! Most firmware and simu flavors not buildable.")
|
||||||
endif()
|
set(LUA NO)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Qt5Core)
|
find_package(Qt5Core)
|
||||||
|
|||||||
Reference in New Issue
Block a user