LX #410 - Use ${PYTHON_EXECUTABLE} for PYTHON_CMD

This commit is contained in:
Tony Barbour 2016-03-01 16:40:39 -07:00
parent ce364935bd
commit ff4013c77c

View File

@ -91,6 +91,8 @@ if (BUILD_TESTS)
endif()
endif()
set (PYTHON_CMD ${PYTHON_EXECUTABLE})
if(NOT WIN32)
include(GNUInstallDirs)
add_definitions(-DSYSCONFDIR="${CMAKE_INSTALL_SYSCONFDIR}")
@ -100,11 +102,6 @@ if(NOT WIN32)
else()
add_definitions(-DLOCALPREFIX="${CMAKE_INSTALL_PREFIX}")
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(PYTHON_CMD "python3")
endif()
else()
set(PYTHON_CMD "py")
endif()
# loader: Generic VULKAN ICD loader