set CMAKE_POSITION_INDEPENDENT_CODE if BUILD_SHARED_LIBS=OFF#1076
set CMAKE_POSITION_INDEPENDENT_CODE if BUILD_SHARED_LIBS=OFF#1076jbeder merged 1 commit intojbeder:masterfrom christian-rauch:set_pic
Conversation
|
This will set PIC for all targets (what if someone adds library as |
|
If |
|
Property on targets should be used instead. It is not rare that CMake projects are included into another, and deciding to set It should always be per target. Also why setting position indepdendant code if building a static library? In many cases we dont want that option. Only if it is included into a bigger shared library |
Why? You will need that option if you want to link your static library into |
I set this for the target |
|
Fixes #1031 |
No description provided.