[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] How to add -fPIC to a static library?
From: Peter Steinbach <steinbach () scionics ! de>
Date: 2016-08-29 7:33:20
Message-ID: 01d36e8e-3d77-d69f-3f9c-be9c70aeecc7 () scionics ! de
[Download RAW message or body]
AFAIK, there is also a global CMAKE_POSITION_INDEPENDENT_CODE that is
used to derive the target-specific value of POSITION_INDEPENDENT_CODE.
If you wanna use fPIC for all your targets, you may wanna consider
set(CMAKE_POSITION_INDEPENDENT_CODE ON).
Best,
P
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic