diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-06-03 17:17:00 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-06-04 10:29:23 +0100 |
commit | 3a8d6528e5f1c5c0ab423f5bb663f14c4db5523c (patch) | |
tree | cdc56dec71c87fb65aa86b704325c73fc837b374 /CMakeLists.txt | |
parent | 7feb26671eb702023b27dc146953191bab311ec6 (diff) |
cmake: Install piglit as piglit.py on Windows.
Windows doesn't support #!. Instead it determines how to execute scripts
based on their file extensions.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 434577ac5..167887112 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -450,8 +450,13 @@ install ( REGEX "CMakeFiles|CMakeLists" EXCLUDE ) +if (WIN32) + set (PYTHON_SUFFIX ".py") +else () + set (PYTHON_SUFFIX "") +endif () install ( - PROGRAMS piglit RENAME piglit${PIGLIT_INSTALL_VERSION_SUFFIX} + PROGRAMS piglit RENAME piglit${PIGLIT_INSTALL_VERSION_SUFFIX}${PYTHON_SUFFIX} DESTINATION ${CMAKE_INSTALL_BINDIR} ) |