[cmake-developers] Adding logic to CMake for -fPIE and -fPIC

Stephen Kelly steveire at gmail.com
Fri Jun 8 04:50:53 EDT 2012


Brad King wrote:

> On Wed, Jun 6, 2012 at 3:48 AM, Stephen Kelly
> <steveire at gmail.com> wrote:
>> This seems to have caused todays failures:
>>
>> http://open.cdash.org/buildSummary.php?buildid=2337242
>> * Does the test pass if you replace
>>
>> if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.4)
>> with
>> if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.4)
> 
> That fixes it.  The test does check_cxx_source_compiles.  Inside the
> try_compile it will enable only CXX and not C so testing
> CMAKE_C_COMPILER_VERSION does not make sense.
> 

Great. That is confirmed now.

I still have an error with Watcom that I don't know how to fix, which I 
think is the last error on this topic:

http://open.cdash.org/testDetails.php?test=148809149&build=2343558

My guess was that the CMAKE_CXX_COMPILE_OPTIONS_DLL flag is not being 
populated or used, though I don't see why.

Can someone with access to that box debug it a bit please?

Thanks,

Steve.





More information about the cmake-developers mailing list