Hi, On Fri, 2012-02-17 at 08:51 +0100, Alexander Neundorf wrote:
-- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< -- > > So the suggestion is > > > > a) Change CMAKE_SKIP_RPATH to only skip RPATH when installing, but not when > > building (I don't know if that's easy in CMake), or alternatively provide > > another CMAKE_ variable to do that. > > > > b) Implement something like: > > set_property(TARGET foo APPEND PROPERTY TEST_ENVIRONMENT "foo=bar") > > > > > > Possibly both a) and b). > > > > Thoughts/comments? > > b) is IMO definitely a missing feature. > (but even with that, we (KDE) would have to keep a macro, because we can't > expect that all developers know how to set this properly for all platforms. > ...or, since it is a target property, this could be also intialized from a > CMAKE_TEST_ENVIRONMENT cmake variable). Maybe I'm missing the point but there is a property ENVIRONMENT for tests: http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_test:ENVIRONMENT > a) To change CMAKE_SKIP_RPATH so that it leaves the RPATH on in the build > tree, but not in the install tree, IMO makes sense. It's also a good sign that > Sune, a Debian packager, says it doesn't matter for Debian what happens in the > build tree, but I don't know whether it would be ok for everybody. > > > Alex Cheers, Marcel Loose. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers