Skip to content

Commit

Permalink
Windows fix I hope.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Feb 14, 2024
1 parent ae18eff commit bfc7e5a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmake/Modules/BuildPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ else()
set( platform Win32 )
endif()

set( Python_ENV ${CMAKE_COMMAND} -E env "PATH=${Python_PATH}" -- )
# @bug: This creates another .bat file and makes the original .bat file fail
# set( Python_ENV ${CMAKE_COMMAND} -E env "PATH=${Python_PATH}" -- )
string(CONCAT Python_ENV "cmd /c \"set PATH=\"${Python_PATH}\"")
string(CONCAT Python_BUILD ${Python_ENV} && PCbuild/build.bat -e -q -p ${platform} )

set( Python_CONFIGURE )
set( Python_BUILD ${Python_ENV} PCbuild/build.bat -e -q -p ${platform} )
set( Python_INSTALL ${Python_ENV} python.bat PC/layout --precompile --preset-default --copy "${CMAKE_INSTALL_PREFIX}/bin/" )

set( Python_INSTALL ${Python_ENV} && python.bat PC/layout --precompile --preset-default --copy "${CMAKE_INSTALL_PREFIX}/bin/" )
endif()

ExternalProject_Add(
Expand Down

0 comments on commit bfc7e5a

Please sign in to comment.