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

Have you read the compiling notes?

http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/tree/compiling.txt#n13


The cmake files are only for windows and mac....


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

-- 
Sent using Mailpile, Free Software from www.mailpile.is

Back to the top