Re: [CMake] How to handle generated arguments list in CMake

2009-07-27 Thread Jörg Förstner
...@cmake.org [mailto:cmake-boun...@cmake.org] Im Auftrag von Philip Lowman Gesendet: Samstag, 18. Juli 2009 08:35 An: Carter Cheng Cc: cmake@cmake.org Betreff: Re: [CMake] How to handle generated arguments list in CMake You probably want

Re: [CMake] How to handle generated arguments list in CMake

2009-07-18 Thread Philip Lowman
You probably want to use the execute_process() on llvm-config --cppflags, then llvm-config --ldflags, etc. and store each into a variable using a regular expression if necessary to parse the output. From there you can call include_directories(), add_definitions(), and target_link_libraries() as

[CMake] How to handle generated arguments list in CMake

2009-07-17 Thread Carter Cheng
Hi, I am having some difficulties determining how to work with a back quoted arguments generator using CMake. I.e. something like this- g++ -g -c Exp.cpp `llvm-config --cppflags --ldflags --libs core jit native` Any advice/tips would be appreciated. Thanks in advance, Carter.