[CMake] Replacing Compile Options for a Target
Jayesh Badwaik
public at jayeshbadwaik.in
Tue Dec 6 23:48:04 EST 2016
Hi,
My global compile flags are specified with "std=c++14" in them. However, there
is a third party header file which I want to compile in my code wherein I need
to use a completely different set of compile flags starting with "-std=c++98".
I have seen target_compile_options() but that seems to just add options to the
already available global options. What command should I use to assign a
completely new set of flags from the scratch.
--
Cheers
Jayesh Badwaik
https://www.jayeshbadwaik.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161207/2d6b0e42/attachment.sig>
More information about the CMake
mailing list