Skip to content

Commit

Permalink
chatgpt fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Feb 14, 2024
1 parent 8cf5183 commit ae18eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/Modules/BuildPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if(APPLE)
set( Python_C_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} ${CMAKE_C_FLAGS}")
endif()

set( Python_CONFIGURE ${CMAKE_COMMAND} -E env CFLAGS=${Python_C_FLAGS} CPPFLAGS=${Python_C_FLAGS} CXXFLAGS=${Python_CXX_FLAGS} LDFLAGS=${Python_LD_FLAGS} -- ${CMAKE_CURRENT_BINARY_DIR}/configure-macos-python.sh --prefix=${CMAKE_INSTALL_PREFIX}
set( Python_CONFIGURE ${CMAKE_COMMAND} -E env "CFLAGS=${Python_C_FLAGS}" "CPPFLAGS=${Python_C_FLAGS}" "CXXFLAGS=${Python_CXX_FLAGS}" "LDFLAGS=${Python_LD_FLAGS}" -- ${CMAKE_CURRENT_BINARY_DIR}/configure-macos-python.sh --prefix=${CMAKE_INSTALL_PREFIX}
)
set( Python_BUILD )
set( Python_INSTALL make -j ${NPROCS} altinstall )
Expand All @@ -38,7 +38,7 @@ elseif(UNIX)
set(Python_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
set(Python_LD_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}" )

set( Python_CONFIGURE ${CMAKE_COMMAND} -E env CFLAGS=${Python_C_FLAGS} CPPFLAGS=${Python_C_FLAGS} CXXFLAGS=${Python_CXX_FLAGS} LDFLAGS=${Python_LD_FLAGS} -- ./configure
set( Python_CONFIGURE ${CMAKE_COMMAND} -E env "CFLAGS=${Python_C_FLAGS}" "CPPFLAGS=${Python_C_FLAGS}" "CXXFLAGS=${Python_CXX_FLAGS}" "LDFLAGS=${Python_LD_FLAGS}" -- ./configure
--enable-optimizations
--enable-shared
--prefix=${CMAKE_INSTALL_PREFIX}
Expand All @@ -52,7 +52,7 @@ else()
set( platform Win32 )
endif()

set( Python_ENV ${CMAKE_COMMAND} -E env PATH="${Python_PATH}" -- )
set( Python_ENV ${CMAKE_COMMAND} -E env "PATH=${Python_PATH}" -- )

set( Python_CONFIGURE )
set( Python_BUILD ${Python_ENV} PCbuild/build.bat -e -q -p ${platform} )
Expand Down
2 changes: 2 additions & 0 deletions mrv2/docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ v1.0.5
======

- Code clean up.
- Fixed Windows' Python compilation screwing up if some other Python version
was installed.


v1.0.4
Expand Down

0 comments on commit ae18eff

Please sign in to comment.