Skip to content

Commit

Permalink
Adjust appveyor.cmake to new cmake Python variables
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Staudinger <[email protected]>
  • Loading branch information
Staudey committed Jan 24, 2025
1 parent 94d258e commit 8cdb686
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/appveyor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ if(BUILD_ZFPY)
set(CTEST_SITE "${CTEST_SITE}_zfpy$ENV{PYTHON_VERSION}")

# sanitize python include dir path (ex. windows vs linux slashes)
set(PYTHON_INCLUDE_DIR "")
file(TO_CMAKE_PATH "${CTEST_SOURCE_DIRECTORY}\\$ENV{VIRTUALENV_NAME}\\Include" PYTHON_INCLUDE_DIR)
set(Python_INCLUDE_DIR "")
file(TO_CMAKE_PATH "${CTEST_SOURCE_DIRECTORY}\\$ENV{VIRTUALENV_NAME}\\Include" Python_INCLUDE_DIR)

list(APPEND cfg_options
-DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}
-DPYTHON_LIBRARY=$ENV{PYTHON_LIB_PATH}
-DPython_INCLUDE_DIR=${Python_INCLUDE_DIR}
-DPython_LIBRARY=$ENV{PYTHON_LIB_PATH}
)
endif()

Expand Down

0 comments on commit 8cdb686

Please sign in to comment.