[CMake] LINK_FLAGS directory property

2016-04-27 Thread Matthew Keeler
Is there an equivalent directory property for the target level LINK_FLAGS property. I can’t see anything according to the documentation but was hoping there was an oversight and something actually existed. What I am trying to do is pass extra flags to the linker for every target in my project a

Re: [CMake] project command not working, when used via macro (from an included file)

2016-04-27 Thread Chuck Atkins
Perhaps I spoke to hastily. It seems the unsupported configuration is if project(...) is actually called from an include file, which makes sense given various scoping issues. Give that, what you have should work fine. What doesn't work as expected? It seems to work just fine when I try it from a

Re: [CMake] project command not working, when used via macro (from an included file)

2016-04-27 Thread aj neu
Ok thanks. But it is unfortunate, since it means that really great macros, such as project_guarded (see http://stackoverflow.com/a/33100078) cannot be used everywhere, as a substitute for project. On Tue, Apr 26, 2016 at 8:04 PM, Chuck Atkins wrote: > ajneu, > > The call to project(...) needs

Re: [CMake] Install with full absolute path on OS X

2016-04-27 Thread Michael Jackson
Thanks. That was the solution. -- Mike Jackson [mike.jack...@bluequartz.net] clin...@elemtech.com April 26, 2016 at 2:57 PM To set the install name to an absolute path, it would probably be something like set_property(TARGET EMsoft PROPERTY INSTALL_NAME_DIR ${CM

Re: [CMake] How to set link option

2016-04-27 Thread vakano
I think the variable CMAKE_EXE_LINKER_FLAGS or LINK_FLAGS may work, but since my project have some other issues, I have not reached to link steps. Thanks, Le Magnus Therning wrote > vakano < > zhongle@ > > writes: > >> Hi, >> >> I have some link option as below: >> >> -Wl, -rpath, ${PROJECT

Re: [CMake] project command not working, when used via macro (from an included file)

2016-04-27 Thread CHEVRIER, Marc
May be using keyword NO_POLICY_SCOPE in include command will solve your problem… From: CMake mailto:cmake-boun...@cmake.org>> on behalf of Chuck Atkins mailto:chuck.atk...@kitware.com>> Date: Tuesday 26 April 2016 at 20:04 To: aj neu mailto:ajn...@gmail.com>> Cc: "cmake@cmake.org

[CMake] install/fast Makerule failing in buildroot

2016-04-27 Thread Dushara Jayasinghe
Hi all, I'm trying to include a package to buildroot (2016.02) with cmake as the build generator however, I've hit a bit of a snag. This particular version of buildroot is using CMake version 3.4.3. The package builds as expected, however during the install step, the following error is generat