aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindPyKDE4.cmake
diff options
context:
space:
mode:
authorKevin Funk <kfunk@kde.org>2015-12-18 12:37:19 +0100
committerKevin Funk <kfunk@kde.org>2015-12-18 15:57:50 +0100
commit942ba80dae253fef93094d178da3ce0abc47da5d (patch)
treec1e633d8caa14d02536806c91a7cf30f3680c809 /attic/modules/FindPyKDE4.cmake
parentbdd38b5f45a889043deb0665bdb66086ca6c9bf5 (diff)
downloadextra-cmake-modules-942ba80dae253fef93094d178da3ce0abc47da5d.tar.gz
extra-cmake-modules-942ba80dae253fef93094d178da3ce0abc47da5d.tar.bz2
CMake: Cleanup: Strip text from endif/else
REVIEW: 126414
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)