From 69891867b18062f93c545699fa6c85afd882a4d1 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 5 Feb 2021 10:36:52 -0800 Subject: [PATCH] Adds python version check --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e297f0a0..2b1425ef1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}/")