Skip to content

Commit

Permalink
Add PYTHON_EXECUTABLE setting in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsandruss committed Aug 13, 2024
1 parent 9f4f3f6 commit fc31cf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if(WIN32)
if(DEFINED ENV{PYTHON})
set(PYTHON_EXECUTABLE $ENV{PYTHON})
endif()
set(SDL_FLAGS "-GS -DynamicBase")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MD")
elseif(UNIX)
Expand Down

0 comments on commit fc31cf2

Please sign in to comment.