aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindPyKDE4.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'attic/modules/FindPyKDE4.cmake')
-rw-r--r--attic/modules/FindPyKDE4.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/attic/modules/FindPyKDE4.cmake b/attic/modules/FindPyKDE4.cmake
index 3b879636..b062912e 100644
--- a/attic/modules/FindPyKDE4.cmake
+++ b/attic/modules/FindPyKDE4.cmake
@@ -157,7 +157,7 @@ ENDMACRO(PYKDE4_INSTALL_PYTHON_FILES)
MACRO(PYKDE4_ADD_EXECUTABLE _pyname _exename)
if(NOT PROJECT_NAME)
MESSAGE(STATUS "Project name is necessary to create symlink against python program!!! It will fail.")
- endif(NOT PROJECT_NAME)
+ endif()
if(WIN32)
# we generate a batch file instead of a symlink. A windows link would only
# work if the file extension .py is associated with python - but that is
@@ -177,8 +177,8 @@ MACRO(PYKDE4_ADD_EXECUTABLE _pyname _exename)
FILE(WRITE ${abs_link_name} "rem this file has been generated by PYKDE4_ADD_EXECUTABLE\n")
FILE(APPEND ${abs_link_name} "python ${rel_target}\n")
INSTALL(PROGRAMS ${LINK_NAME} DESTINATION $ENV{DESTDIR}/${BIN_INSTALL_DIR})
- else(WIN32)
+ else()
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -DTARGET=${DATA_INSTALL_DIR}/${PROJECT_NAME}/${_pyname} -DLINK_NAME=${BIN_INSTALL_DIR}/${_exename} -P ${current_module_dir}/create_exe_symlink.cmake)" )
- endif(WIN32)
+ endif()
ENDMACRO(PYKDE4_ADD_EXECUTABLE)