Merge pull request #756 from Sonicadvance1/python_check

Adds python version check
This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2021-02-06 14:20:49 +02:00 committed by GitHub
commit fcf1c2572b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,8 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
message(FATAL_ERROR "FEX doesn't support getting compiled with GCC!")
endif()
find_package(Python 3.0 REQUIRED COMPONENTS Interpreter Development)
add_definitions(-Wno-trigraphs)
add_definitions(-DGLOBAL_DATA_DIRECTORY="${DATA_DIRECTORY}/")