The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13550 
====================================================================== 
Reported By:                Alexander
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13550
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-09-19 13:57 EDT
Last Modified:              2012-09-19 13:57 EDT
====================================================================== 
Summary:                    CMAKE_C_COMPILE_OPTIONS_PIE not set for Clang
Description: 
I'm trying to use CMAKE_C_COMPILE_OPTIONS_PIE and CMAKE_CXX_COMPILE_OPTIONS_PIE
variables, but they are not set when using Clang.

I found this in /usr/share/cmake/Modules/Compiler/GNU.cmake :

  if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.4)
    set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
  endif()

Clang is a GNU-compatible compiler (I have version 3.1), but it doesn't pass the
check.

Thanks
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-09-19 13:57 Alexander      New Issue                                    
======================================================================

--

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

Reply via email to