Skip to content

Commit 8cdb686

Browse files
committed
Adjust appveyor.cmake to new cmake Python variables
Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
1 parent 94d258e commit 8cdb686

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cmake/appveyor.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ if(BUILD_ZFPY)
5353
set(CTEST_SITE "${CTEST_SITE}_zfpy$ENV{PYTHON_VERSION}")
5454

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

5959
list(APPEND cfg_options
60-
-DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}
61-
-DPYTHON_LIBRARY=$ENV{PYTHON_LIB_PATH}
60+
-DPython_INCLUDE_DIR=${Python_INCLUDE_DIR}
61+
-DPython_LIBRARY=$ENV{PYTHON_LIB_PATH}
6262
)
6363
endif()
6464

0 commit comments

Comments
 (0)