On 06/08/2012 10:08 AM, Stephen Kelly wrote: > David Cole wrote: >> >> There's also this build warning: >> >> http://open.cdash.org/viewBuildError.php?type=1&buildid=2342611 >> >> Please eradicate that, and then this topic will be ready for merging. > > Any idea what causes it? > > I don't see why only that line would cause such a warning. It should be from > every compilation or none... > > Any idea what the fix is?
That dashboard build uses "bootstrap" so CMake is built with itself. Therefore the new build flags appear during CMake's own build which includes the test module in KWSys. That is the only shared library built as part of CMake, so only that shows the warning. The problem is in Modules/Platform/CYGWIN-GNU.cmake Modules/Platform/Windows-GNU.cmake which currently have set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "") # No -fPIC on cygwin and set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "") # No -fPIC on Windows to override the Modules/Compiler/GNU.cmake settings. They should be updated to override the PIC/PIE compile option variables too. -Brad -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers