Skip to content

Commit

Permalink
engine/CMakeLists.txt: Fix IF(PythonInstalledVia ... syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengtuggy committed Jan 11, 2025
1 parent da8ace5 commit b4ec5a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ FIND_PACKAGE(LinuxDistro REQUIRED)

SET(PythonInstalledVia "" CACHE STRING "How Python was installed, such as via Homebrew or MacPorts")

IF (${PythonInstalledVia} STREQUAL "Homebrew" OR ${PythonInstalledVia} STREQUAL "Brew")
IF (PythonInstalledVia STREQUAL "Homebrew" OR PythonInstalledVia STREQUAL "Brew")
FIND_PACKAGE(Python3 3.13.1 EXACT REQUIRED COMPONENTS Development Interpreter)
ELSEIF (${PythonInstalledVia} STREQUAL "MacPorts" OR ${PythonInstalledVia} STREQUAL "Port")
ELSEIF (PythonInstalledVia STREQUAL "MacPorts" OR PythonInstalledVia STREQUAL "Port")
FIND_PACKAGE(Python3 3.12.8 EXACT REQUIRED COMPONENTS Development Interpreter)
ELSE ()
FIND_PACKAGE(Python3 3.7...3.13 REQUIRED COMPONENTS Development Interpreter)
Expand Down

0 comments on commit b4ec5a5

Please sign in to comment.