[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-buildsystem
Subject: How to test for gnu extensions
From: brad.king () kitware ! com (Brad King)
Date: 2006-02-10 0:40:16
Message-ID: 43EBE0F0.5060607 () kitware ! com
[Download RAW message or body]
Brad King wrote:
> David Faure wrote:
>
>>Thanks. That makes sense ... and it almost works :) The quoting seems to go wrong.
>>
>>I tried this:
>>
>>+set(CMAKE_REQUIRED_FLAGS ${_KDE4_PLATFORM_DEFINITIONS})
>>+MESSAGE("from ConfigureChecks.cmake : ${CMAKE_REQUIRED_FLAGS}")
>>
>>And I get this:
>>
>>from ConfigureChecks.cmake : -D_XOPEN_SOURCE=500;-D_BSD_SOURCE;-D_GNU_SOURCE
>
>
> Oops, I didn't notice that _KDE4_PLATFORM_DEFINITIONS is a list and not
> a string. The CMAKE_REQUIRED_FLAGS variable is supposed to be a string
> of compiler flags. I'll update the Check* cmake modules to support a
> CMAKE_REQUIRED_DEFINITIONS for this purpose.
Okay, this has been added to the CMake versions of the Check* modules.
This should work once the Check* modules are removed from
kdelibs/cmake/modules:
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
-Brad
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic