Hi, I had the same problem as OP. To fix, delete CMakeCache.txt in the build dir, and run ccmake again. Phew!
BTW, is there a way to reply directly to an archived post? I just copied the thread and subject into a new email msg, which is easy enough actually. Cheers, Michael =========================================================== Michael Wild 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 > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake