cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Sorry not truly C++, how set PIC flag in
Sorry not truly C++, how set PIC flag in build by Cmake command line
Nov 15, 2020 at 12:18pm UTC
marhuum
(181)
How to set PIC flag in build by use of cmake command line?
as in gcc is the option -fPIC
e.g.
cmake -G "Unix Makefiles" .....
Last edited on
Nov 15, 2020 at 12:19pm UTC
Nov 16, 2020 at 1:12pm UTC
MikeyBoy
(5631)
From a simple Google search for "cmake fPIC":
https://stackoverflow.com/questions/38296756/what-is-the-idiomatic-way-in-cmake-to-add-the-fpic-compiler-option
Topic archived. No new replies allowed.