kdelibs/kjs/CMakeLists.txt

Andreas Pakulat apaku at gmx.de
Sun Sep 23 21:14:14 CEST 2007


On 23.09.07 14:50:47, Allen Winter wrote:
> I'm using cmake from cvs and it found a problem in kdelibs/kjs/CMakeLists.txt:
> 
> Warning: Source file "/data/kde/trunk/KDE/kdelibs/build-gcc/kjs/kjs_automoc.cpp" is listed multiple times for target "kjs".
> 
> I think this  is due to having a library named 'kjs' and a separate app named 'kjs'.
> The warning goes away if I change
>   set(kjs_SRCS kjs.cpp)
>   kde4_add_executable(kjs NOGUI ${kjs_SRCS})
>   target_link_libraries(kjs ${KJSLIBNAME})
>   install(TARGETS kjs DESTINATION ${BIN_INSTALL_DIR})
> 
> to
>   set(kjs_SRCS kjs.cpp)
>   kde4_add_executable(kjshell NOGUI ${kjs_SRCS})
>   target_link_libraries(kjshell ${KJSLIBNAME})
>   install(TARGETS kjshell DESTINATION ${BIN_INSTALL_DIR})
> 
> i.e, rename the app 'kjs' to 'kjshell'.
> Not sure if there is a better way to fix the warning.. I doubt
> we want to change the name of the kjs application.

Dirk recently changed the executable from js to kjs because js conflicts
with seamonkey. I'm for changing the application binary to kjshell.

Andreas

-- 
Things will be bright in P.M.  A cop will shine a light in your face.


More information about the Kde-buildsystem mailing list