[cmake-developers] [CMake 0013550]: CMAKE_C_COMPILE_OPTIONS_PIE not set for Clang
Mantis Bug Tracker
mantis at public.kitware.com
Wed Sep 19 13:57:20 EDT 2012
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
======================================================================
More information about the cmake-developers
mailing list