Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Using cmake on linux for 1.4

Hi Chris,

Thanks, you're right. It looks like the linker error is a copy/paste
mistake: http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/commit/?h=1.4&id=ff3ebd969be0685f6a4d7ad29025cd4486a7b8f3

I'm a bit confused about the CMP though, I didn't think I'd been using
cmake 3 - hence the change to requiring 2.8 in the above changeset.

I'll make the changes.

Cheers,

Roger


On Sat, Feb 21, 2015 at 5:53 AM, Christoph Willing
<chris.willing@xxxxxxxxxxxx> wrote:
> I've noticed two problems compiling the new 1.4 on linux using cmake. Both
> problems are seen on Slackware64 and Ubuntu 14.04.
>
> 1. src/CMakeLists.txt incorrectly (I believe) uses the
> "exported_symbols_list" linker option. Linking fails with that option in
> place. I think this should use "dynamic-list" option instead as shown in the
> attached patch. Linking completes with this patch.
>
> 2. CMakeLists.txt contains the directive cmake_policy(SET CMP0042 NEW)
> immediately following cmake_minimum_required(VERSION 2.8). However, using
> cmake-2.8.12 I see the error:
>     CMake Error at CMakeLists.txt:12 (cmake_policy):
>         Policy "CMP0042" is not known to this version of CMake.
>
> The documentation at
> http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html indicates that it
> was introduced in cmake-3.0 i.e. not applicable to previous versions.
>
> It can be fixed locally (cmake-2.8.12) by commenting that line out or making
> it conditional, as per second attached patch.
>
> chris
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top