[CMake] Problem with recognising the MSYS environment

Hendrik Sattler post at hendrik-sattler.de
Fri Apr 17 04:57:38 EDT 2009


Zitat von Werner Smekal <smekal at iap.tuwien.ac.at>:
> On 17.04.2009, at 10:02, Hendrik Sattler wrote:
>> Find_library() should only be used for libraries that are not   
>> system or compiler specific, e.g. you look but libfoo but never for  
>>  libm.
>
> But then cmake will complain/warn that you mix libraries with full path
> with libraries without path information. Should these warnings be
> ignored (why does cmake warn then in the first place) or how should
> that be handled correctly?

cmake_policy(SET CMP0003 NEW) or cmake_policy(VERSION 2.6)
somewhere at the beginning of the top CMakeLists.txt file.

HS




More information about the CMake mailing list