[cmake-developers] Make CMAKE_SHARED_MODULE_PREFIX empty by default on UNIX ?

2012-12-13 Thread Alexander Neundorf
Hi, in KDE we create a lot of dynamic plugins, and since KDE 1.x we create them without the lib prefix. There was a request on the KDE buildsystem list to make this the default behaviour of cmake: http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7570 A quick survey on my system showed

Re: [cmake-developers] General Config.cmake file issue on ArchLinux

2012-12-13 Thread Alexander Neundorf
On Thursday 06 December 2012, Stephen Kelly wrote: Alexander Neundorf wrote: On Thursday 06 December 2012, Stephen Kelly wrote: ... I don't fully follow (too much 'the example' etc :)), but I guess it's not too important. I think the two cases we're talking about are clear *

Re: [cmake-developers] exports and MAP_IMPORTED_CONFIG_CONFIG

2012-12-13 Thread Stephen Kelly
Brad King wrote: On 12/09/2012 08:48 AM, Stephen Kelly wrote: I think the 'Setting include directories via target_link_libraries() ?' thread needs to be concluded first (with reasoning), as that affects everything else. While thinking about my next response to that discussion I realized

Re: [cmake-developers] transitive -I and -D usage requirements (was: Policy for INTERFACE_LINK_LIBRARIES)

2012-12-13 Thread Stephen Kelly
Brad King wrote: On 12/09/2012 08:48 AM, Stephen Kelly wrote: I think the 'Setting include directories via target_link_libraries() ?' thread needs to be concluded first (with reasoning), as that affects everything else. While thinking about my next response to that discussion I read your

Re: [cmake-developers] transitive -I and -D usage requirements

2012-12-13 Thread Stephen Kelly
Stephen Kelly wrote: set_property(TARGET foo INTERFACE_INCLUDE_DIRECTORIES /include/foo $TARGET_PROPERTY:bar,INTERFACE_INCLUDE_DIRECTORIES $TARGET_PROPERTY:bat,INTERFACE_INCLUDE_DIRECTORIES ) The consumer will get the foo include followed by the bar include followed by the bat include.

Re: [cmake-developers] exports and MAP_IMPORTED_CONFIG_CONFIG

2012-12-13 Thread Stephen Kelly
Brad King wrote: On 12/13/2012 08:44 AM, Stephen Kelly wrote: Where would the configuration mapping come from is another project is encountered? The mapping comes from the MAP_IMPORTED_CONFIG_ on the target from which the property value containing the current generator expression was read.

Re: [cmake-developers] exports and MAP_IMPORTED_CONFIG_CONFIG

2012-12-13 Thread Brad King
On 12/13/2012 11:02 AM, Stephen Kelly wrote: Brad King wrote: The mapping comes from the MAP_IMPORTED_CONFIG_ on the target from which the property value containing the current generator expression was read. That's what I thought, but that property is not currently exported, right? It is

Re: [cmake-developers] exports and MAP_IMPORTED_CONFIG_CONFIG

2012-12-13 Thread Stephen Kelly
Brad King wrote: On 12/13/2012 11:02 AM, Stephen Kelly wrote: Brad King wrote: The mapping comes from the MAP_IMPORTED_CONFIG_ on the target from which the property value containing the current generator expression was read. That's what I thought, but that property is not currently

Re: [cmake-developers] exports and MAP_IMPORTED_CONFIG_CONFIG

2012-12-13 Thread Brad King
On 12/13/2012 11:22 AM, Stephen Kelly wrote: include(FooTargets.cmake) Sorry, I misread that as find_package(Foo). set_property(TARGET Foo::foo PROPERTY MAP_IMPORTED_CONFIG_COVERAGE Release ) However, I think the above is clear enough. The consuming project would set the property

Re: [cmake-developers] Setting include directories via target_link_libraries() ?

2012-12-13 Thread Brad King
On 12/12/2012 05:32 PM, David Cole wrote: I strongly agree with Alex here. Mysteriously changing the target_link_libraries implementation to automatically do a bunch of stuff BY DEFAULT that it didn't used to do violates the principle of least surprise big time. Yes. Also I think some of

[cmake-developers] regex bug?

2012-12-13 Thread Matthew Woehlke
Consider this line of CMake code: string(REGEX REPLACE ^([^.]*)(\..*)?$ \1 BAR ${FOO}) It looks reasonable to me, and works fine on !Windows. However, on Windows, I get these errors: Syntax error in cmake code at elided when parsing string ^([^.]*)(\..*)?$ Invalid escape sequence \. Syntax

[cmake-developers] [CMake 0013791]: CMake does not support generating projects for Windows Phone 8.

2012-12-13 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=13791 == Reported By:jujjyl Assigned To:

[CMake] Linking library with custom target

2012-12-13 Thread Reza Housseini
Hello I want to link a library to a custom target: add_custom_command( OUTPUT ${FILE} DEPENDS ${SRC} COMMAND ${EXECUTABLE} ARGS ${SRC} COMMENT Generating ${FILE} VERBATIM) add_custom_target(mytarget ALL DEPENDS ${FILE}) target_link_libraries(mytarget /usr/local/lib/libmylib.so)

[CMake] How to use CMAKE_POLICY?

2012-12-13 Thread Marcel Loose
Hi all, I'm trying to figure out how to use the CMAKE_POLICY() command. I want to get rid of the warning on CMP0017. I've strategically placed cmake_policy(PUSH), cmake_policy(SET CMP0017 OLD), and cmake_policy(POP) which solves the problem when configuring with CMake 2.8.9. However, our

Re: [CMake] How to use CMAKE_POLICY?

2012-12-13 Thread David Cole
You could use if(POLICY (if 2.6.2 supports that... I think it does, but it was very long ago..) to avoid the call on older CMakes. On Thu, Dec 13, 2012 at 6:31 AM, Marcel Loose lo...@astron.nl wrote: Hi all, I'm trying to figure out how to use the CMAKE_POLICY() command. I want to get

Re: [CMake] Why is XXX_INCLUDE_DIRS plural and should it be deep?

2012-12-13 Thread Lori A. Pritchett-Sheats
My $0.02..I just completed a CMake system for a code project that required several TPLs (third party libraries) two of which were the NetCDF and HDF5. I struggled with the same problems you mention here. When I wrote my FindXXX modules, the standard I adopted was, XXX_INCLUDE_DIR only

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-315-g34ecf70

2012-12-13 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 59bac2d..e4117d5 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ set(CMake_VERSION_MAJOR 2) set(CMake_VERSION_MINOR 8) set(CMake_VERSION_PATCH 10) -set(CMake_VERSION_TWEAK 20121213