Try to make things work
authorGert-Jan Rozing <gert.rozing@myestro.de>
Mon, 26 Aug 2019 09:45:08 +0000 (11:45 +0200)
committerGert-Jan Rozing <gert.rozing@myestro.de>
Mon, 26 Aug 2019 09:45:08 +0000 (11:45 +0200)
CMakeLists.txt

index ea1bd5577b94c921f1836514e321430a14f5c3ff..af8a3c115bfe3f033d1452c28715ca7710d885af 100644 (file)
@@ -129,9 +129,9 @@ install(FILES ${man_3_SRC}
 
 find_package(Python COMPONENTS Interpreter QUIET)
 
-file(GLOB setup_SRC "setup.py")
 if(Python_FOUND)
-       install(CODE "execute_process(COMMAND cd ${CMAKE_SOURCE_DIR} && ${Python_EXECUTABLE} ${setup_SRC} install)")
+       message(STATUS "Installing python modules.")
+       install(CODE "execute_process(COMMAND ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/setup.py install)")
 endif()
 #
 #install(CODE "execute_process(COMMAND ldconfig)")