aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2016-03-01 16:40:39 -0700
committerTony Barbour <tony@LunarG.com>2016-03-02 09:33:14 -0700
commit6555901a1292de95b0bfca44bdb1c04a341ea922 (patch)
treef5fd9ea02900742548ffa7fe9025fc2e8e03e3a9
parent0ba6b3cd96230418b4f03c878309b75ccb4f8966 (diff)
downloadusermoji-6555901a1292de95b0bfca44bdb1c04a341ea922.tar.xz
LX #410 - Use ${PYTHON_EXECUTABLE} for PYTHON_CMD
-rwxr-xr-xCMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e48114bb..c1b89ea8 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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