diff options
author | Gökcen Eraslan <gokcen@pardus.org.tr> | 2009-06-10 09:29:49 +0000 |
---|---|---|
committer | Gökcen Eraslan <gokcen@pardus.org.tr> | 2009-06-10 09:29:49 +0000 |
commit | f22141bb6681a17948dca23a39d0779e9375bde2 (patch) | |
tree | f5edb0f457113792e302d946b051d976d4d45520 /modules | |
parent | ad016366d75d46d029b469ba8073cbf8c0fec113 (diff) | |
download | extra-cmake-modules-f22141bb6681a17948dca23a39d0779e9375bde2.tar.gz extra-cmake-modules-f22141bb6681a17948dca23a39d0779e9375bde2.tar.bz2 |
Fix project name control. Previously, condition was always true since there is no variable named printer-applet.
CCMAIL: montel@kde.org
svn path=/trunk/KDE/kdelibs/; revision=979601
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindPyKDE4.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindPyKDE4.cmake b/modules/FindPyKDE4.cmake index dd2b7380..1db7bf08 100644 --- a/modules/FindPyKDE4.cmake +++ b/modules/FindPyKDE4.cmake @@ -156,9 +156,9 @@ ENDMACRO(PYKDE4_INSTALL_PYTHON_FILES) # executable. # MACRO(PYKDE4_ADD_EXECUTABLE _pyname _exename) - if(NOT ${PROJECT_NAME}) - MESSAGE(STATUS "Project name is necessary to create symlink against python program!!! It will failed.") - endif(NOT ${PROJECT_NAME}) + if(NOT PROJECT_NAME) + MESSAGE(STATUS "Project name is necessary to create symlink against python program!!! It will fail.") + endif(NOT PROJECT_NAME) 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)" ) ENDMACRO(PYKDE4_ADD_EXECUTABLE) |