From d69ff2243f8901d6157b09bb7e7743e345a94fad Mon Sep 17 00:00:00 2001
From: Pere Mato <pere.mato@cern.ch>
Date: Mon, 31 Aug 2015 15:15:58 +0200
Subject: [PATCH] Fix installation of new command line tools

---
 main/CMakeLists.txt | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 6035c96e754..7d879c5889c 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -31,9 +31,8 @@ if(python)
                     COMMAND ${CMAKE_COMMAND} -E copy ${rawUtilName} ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/${utilName})
   endforeach()
 
-  set(cmdLineUtilsModule "python/cmdLineUtils.py")
-  install(FILES ${cmdLineUtilsModule} DESTINATION ${runtimedir})
-  install(CODE "execute_process(COMMAND python -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/${cmdLineUtilsModule} )")
-  install(CODE "execute_process(COMMAND python -O -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/${cmdLineUtilsModule} )")
-  file(COPY ${cmdLineUtilsModule} DESTINATION ${CMAKE_BINARY_DIR}/${runtimedir})
+  install(FILES python/cmdLineUtils.py DESTINATION ${runtimedir})
+  install(CODE "execute_process(COMMAND python -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/cmdLineUtils.py )")
+  install(CODE "execute_process(COMMAND python -O -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/cmdLineUtils.py )")
+  file(COPY python/cmdLineUtils.py DESTINATION ${CMAKE_BINARY_DIR}/${runtimedir})
 endif()
-- 
GitLab