[cmake-developers] Adding logic to CMake for -fPIE and -fPIC
Brad King
brad.king at kitware.com
Wed Jun 6 12:55:09 EDT 2012
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.
-Brad
More information about the cmake-developers
mailing list