diff options
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) |