Comments (4)
There some explicit handling for -fPIC
introduced by @mick-p1982 and POSITION_INDEPENDENT_CODE
property is not carried over to PCH target for some reason.
@mick-p1982 Do you remember what was the issue with POSITION_INDEPENDENT_CODE
?
from cmakepchcompiler.
This is somewhat similar (but not duplicate) to #23. We need to ensure that we properly copy CMAKE_CXX_COMPILE_OPTIONS_PIC
to CXXPCH
in order to make PIC generation working for PCH.
I try to work on it in near future.
from cmakepchcompiler.
The high-level feature CMake offers for PIC just don't get processed normally... CMake must add it later in the pipeline. I've never heard of PIE; but I'm sure it can be added. I'm not offering. The PIC variable is injected near the bottom of the main script file.
I should add that the feature isn't about setting the "-fPIC" flag manually. It's about the platform-independent feature provided by CMake.
from cmakepchcompiler.
Fixed in e17969b
from cmakepchcompiler.
Related Issues (20)
- Ad: Much better version exists in pull-request #13 HOT 1
- clang from llvm does not seem to work on osx HOT 1
- Investigate and clarify better /Z7 necessity for MSVC 2010 and higher when using PCH HOT 8
- TYPE is c++-header? What is this for anyway? HOT 2
- Wrong C++ standard - GNU extensions enabled in PCH file but disabled in CMake HOT 3
- Can't find PCH file during build. HOT 8
- Does not work when target is linked against "rich" targets declaring their own include directories and defines
- Doesn't work on linux cmake 3.10.2 HOT 3
- Doesn't work with multiple language targets. HOT 9
- Static libraries not supported HOT 1
- pch.h generates without c++ standard HOT 2
- wrong -isystem /usr/include in pch.h compilations flags HOT 7
- Improve documentation about auto-include "pch.h" HOT 1
- -iframework flag is not applied for pch target HOT 6
- Alternative to separate CXXPCH compiler definition HOT 8
- PCH breaks clang code model in Qt Creator.
- OpenGL::GL causes build failure HOT 2
- Setting CMAKE_CXX_STANDARD leads to error HOT 1
- Comparison between CMakePCHCompiler and CMake's new implementation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmakepchcompiler.