Re: [CMake] Support of compile features for Fujitsu C++ Compiler

2019-05-24 Thread Patrick Griffiths
A naive grep tells me the IAR compiler detection sets CMAKE_CXX_LINK_FLAGS in its compiler detection. Maybe that'd work for you? On Fri, May 24, 2019 at 3:48 AM Zehner Paul wrote: > Hello all, > > So, I managed to configure my `Fujitsu-CXX.cmake` file to use the Fujitsu > C++ compiler with MPI

Re: [CMake] Toolchain file for TI in CMake 3.10: how do I override compiler options and specify tools?

2019-02-23 Thread Patrick Griffiths
On Sat, Feb 23, 2019 at 12:49 AM Jason Heeris wrote: > I am trying to use CMake (3.10) to build an ANSI C project that may be > compiled on PC with eg. GCC, but also needs to compile with Texas > Instruments' compilers for their microprocessors. So I have about a million > questions. > > Accordin

Re: [CMake] How to build CMake so it works on an older Linux?

2018-04-05 Thread Patrick Griffiths
I had a similar problem on 14.04 and solved it by installing gcc 4.9 (other version are also available) from the ubuntu-toolchain-r PPA. This worked for me. YMMV: $ sudo add-apt-repository ppa:ubuntu-toolchain-r/test $ sudo apt-get update $ sudo apt-get install gcc-4.9 $ sudo apt-get install g++-

[CMake] target_link_libraries can't set linker options with Visual Studio generator

2015-06-29 Thread Patrick Griffiths
I'm using CMake 3.2.3. I really need to be able to add options to LINK_FLAGS using generator expressions. When I use LINK_FLAGS with set_target_properties or set_property, generator expressions are not expanded. I noticed that the documentation for target_link_libraries says: "Item names startin

[CMake] Using generator expressions with set_target_properties

2015-06-25 Thread Patrick Griffiths
I'm trying to add the /PDBSTRIPPED option LINK_FLAGS_RELWITHDEBINFO config (Visual Studio generator, obviously): set_target_properties(target PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/PDBSTRIPPED:$/stripped/$.pdb") Unfortunately the generator expressions aren't being expanded. Any suggestions on