[CMake] Automoc4 issue when using cmake (2.8.9)

Laszlo Papp lpapp at kde.org
Tue Sep 25 18:31:38 EDT 2012


Forgot to mention that, but the problem happens when the find KDE4 is in
action. If I comment that line, and I try to find the automoc4 directly,
there are no such issues.

Further information:

pacman -Qo /usr/share/cmake-2.8/Modules/FindKDE4.cmake
/usr/share/cmake-2.8/Modules/FindKDE4.cmake is owned by cmake 2.8.9-1
pacman -Qo /usr/share/apps/cmake/modules/FindKDE4Internal.cmake
/usr/share/apps/cmake/modules/FindKDE4Internal.cmake is owned by kdelibs
4.9.1-1
pacman -Qo /usr/share/apps/cmake/modules/FindAutomoc4.cmake
/usr/share/apps/cmake/modules/FindAutomoc4.cmake is owned by kdelibs 4.9.1-1

Laszlo

On Tue, Sep 25, 2012 at 11:29 PM, Laszlo Papp <lpapp at kde.org> wrote:

> CMakeLists.txt
>
> cmake_minimum_required(VERSION 2.8)
>
> project(test)
>
> add_executable(test main.cpp)
>
> #find_package(Automoc4 REQUIRED)
> find_package(KDE4 REQUIRED)
>
> main.cpp
>
> int main() {return 0;}
>
> Command to execute:
>
> cmake ../ (in the build directory)
>
> cmake version: 2.8.9
> automoc4: 0.9.88
>
> Laszlo
>
>
> On Tue, Sep 25, 2012 at 7:33 PM, Alexander Neundorf <
> a.neundorf-work at gmx.net> wrote:
>
>> On Tuesday 25 September 2012, Laszlo Papp wrote:
>> > Hi,
>> >
>> > Worked couple of days ago. Help welcome.
>> >
>> > Laszlo
>> >
>> > -- Found Threads: TRUE
>> > -- Found OpenSSL: /usr/lib/libssl.so
>> > -- Looking for _POSIX_TIMERS
>> > -- Looking for _POSIX_TIMERS - found
>> > CMake Error at
>> > /usr/share/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198
>> > (MESSAGE):
>> >   Did not find automoc4 (Automoc4Config.cmake, install
>> >   git://anongit.kde.org/automoc).  (missing: AUTOMOC4_EXECUTABLE)
>> > Call Stack (most recent call first):
>> >   /usr/share/apps/cmake/modules/FindAutomoc4.cmake:49
>> > (find_package_handle_standard_args)
>> >   /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:423
>> (find_package)
>> >   /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
>> >   CMakeLists.txt:27 (find_package)
>>
>> Can you please describe the setup a bit more ?
>>
>> Alex
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120925/1c0f9b2b/attachment.htm>


More information about the CMake mailing list