[CMake] An issue with snow leopard?
Michael Wild
themiwi at gmail.com
Sun Aug 30 04:41:04 EDT 2009
$ grep -r Wno-long-double cmake-2.6.4
cmake-2.6.4/Utilities/cmcurl/CMakeLists.txt: CHECK_C_COMPILER_FLAG(-
Wno-long-double HAVE_C_FLAG_Wno_long_double)
cmake-2.6.4/Utilities/cmcurl/CMakeLists.txt:
SET(MPRINTF_COMPILE_FLAGS "${MPRINTF_COMPILE_FLAGS} -Wno-long-double")
cmake-2.6.4/Utilities/cmcurl/CMakeLists.txt:
SET(MPRINTF_COMPILE_FLAGS "-Wno-long-double")
As you can see, -Wno-long-double only shows up in the code that
compiles the Curl library, and that only if the flag is accepted by
the compiler (as you can see from the CHECK_C_COMPILER_FLAG). So I
suspect that this flag is set somewhere in your own CMake code.
Michael
On 29. Aug, 2009, at 19:30, Wei Lu wrote:
> Hi Michael,
>
> I removed the project and then recompiled (even rebuild cmake), but
> it still appears the same error. I also attached a compiling log,
> hope it can help.
>
> Thanks,
> Wei
>
> <compiling log.txt>
> On Aug 29, 2009, at 4:56 AM, Michael Wild wrote:
>
>>
>> On 29. Aug, 2009, at 8:23, Wei Lu wrote:
>>
>>> Hi cmake users,
>>>
>>> When I upgrade my mac to snow leopard, some of my projects don't
>>> compile any more with cmake.
>>> The error message is:
>>>
>>> cc1plus: error: unrecognized command line option "-Wno-long-double"
>>>
>>> My guess is that the option "-Wno-long-double" generated by cmake
>>> is deprecated in snow leopard, am I right? How can I fix it?
>>>
>>> Thanks,
>>> Wei Lu
>>
>> Are you sure CMake added this flag (I strongly doubt it)? Did you
>> try with a clean cache?
>>
>> Michael
>
More information about the CMake
mailing list