Re: [CMake] Include XYZ.cmake from external project

2016-04-08 Thread Craig Scott
Matthias, check out the following article which solves exactly the same
problem as yours, just with GoogleTest as the third party package:

https://crascit.com/2015/07/25/cmake-gtest/

It includes a fully general implementation hosted on github (MIT license)
which you can use directly in your project. The technique discussed there
causes the download to happen immediately so that the sources can be pulled
in via add_subdirectory() without having to restructure  your project as a
superbuild. FWIW, a superbuild is also a good solution, the above article
is just another alternative.



On Sat, Apr 9, 2016 at 6:27 AM, Nicholas Braden 
wrote:

> To solve the dependency order problem, generally you would make a
> superbuild which builds your dependencies and also your own project
> via ExternalProject, using the DEPENDS option to guarantee build
> order. This way all your dependencies are fully built and installed
> before it even gets to configuring your own project.
>
> On Fri, Apr 8, 2016 at 3:25 PM, Matthias Möller 
> wrote:
> > Dear all,
> >
> > I have difficulties including a XYZ.cmake file from an external project.
> >
> > ExternalProject_Add(MTL4
> > SVN_REPOSITORYhttps://simunova.zih.tu-dresden.de/svn/mtl4/trunk
> > SVN_USERNAME  guest
> > SVN_PASSWORD  guest
> > SVN_TRUST_CERT1
> > TIMEOUT   180
> > PREFIX${CMAKE_BINARY_DIR}/external/MTL4
> > CONFIGURE_COMMAND ""
> > BUILD_COMMAND ""
> > INSTALL_COMMAND   “"
> > )
> >
> > ExternalProject_Get_Property(MTL4 source_dir)
> > set(MTL4_INCLUDE_DIRS ${source_dir})
> > set(MTL_DIR ${source_dir})
> >
> > # Include MTLConfig from the unpacked(!!!) MTL4 library
> > include("${source_dir}/MTLConfig.cmake" OPTIONAL RESULT_VARIABLE
> > MTLCONFIG_FOUND)
> >
> >
> > # MTL4 is a header-only library, hence downloading and unpacking is
> > sufficient
> > add_executable (demo demo.cxx)
> > add_dependencies(demo MTL4)
> >
> > The problem is, that in a fresh build the MTL4 library is not yet
> unpacked,
> > and hence, the MTLConfig.cmake file is not available.
> > How can I “include(…)” a cmake file which is only available after the
> > external project has been processed?
> >
> > Kind regards,
> > Matthias
> >
> >
> > --
> >
> > Powered by www.kitware.com
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Kitware offers various services to support the CMake community. For more
> > information on each offering, please visit:
> >
> > CMake Support: http://cmake.org/cmake/help/support.html
> > CMake Consulting: http://cmake.org/cmake/help/consulting.html
> > CMake Training Courses: http://cmake.org/cmake/help/training.html
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/cmake
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake




-- 
Craig Scott
Melbourne, Australia
http://crascit.com
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] how to add custom command/step to ExternalProject_Add ?

2016-04-08 Thread David Cole via CMake
This file has an example use which executes after download and before configure:

https://github.com/Kitware/CMake/blob/master/Tests/ExternalProjectLocal/CMakeLists.txt


HTH,
David C.


> On Apr 8, 2016, at 6:39 PM, jagernico...@legtux.org wrote:
> 
> Hi,
> 
> my question is related to : 
> http://stackoverflow.com/questions/36506300/using-autogen-sh-with-externalproject-add
> 
> I have to use ExternalProject_Add to compile 
> https://github.com/fukuchi/libqrencode as a gitmodule, it requires to run 
> autogen.sh before running configure.
> 
> I don't understand how to use ExternalProject_Add_Step to add a step before 
> CONFIGURE_COMMAND.
> 
>  
> 
> regards,
> 
> Nicolas
> 
>  
> 
>  
> -- 
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more 
> information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] how to add custom command/step to ExternalProject_Add ?

2016-04-08 Thread jagernicolas
 

Hi, 

my question is related to :
http://stackoverflow.com/questions/36506300/using-autogen-sh-with-externalproject-add
[1] 

I have to use ExternalProject_Add to compile
https://github.com/fukuchi/libqrencode [2] as a gitmodule, it requires
to run autogen.sh before running configure. 

I don't understand how to use ExternalProject_Add_Step to add a step
before CONFIGURE_COMMAND. 

regards, 

Nicolas 

 

Links:
--
[1]
http://stackoverflow.com/questions/36506300/using-autogen-sh-with-externalproject-add
[2] https://github.com/fukuchi/libqrencode
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] Fwd: CPack does not generate a RPM

2016-04-08 Thread Kristian
I think others also may be interested in this. Please send a copy of
your example ...

2016-04-08 8:31 GMT+02:00 Wang, Peng 1. (Nokia - CN/Hangzhou)
:
> Hi,
>
> Sorry guys, I am busy on some prioritized tasks.
> I've made a simple example, can I send in attachment? Or maybe I shall send 
> the attachment only to you two?
>
> Wang Peng (Rex)
> Seat: 21F
> HZ SE Team
> +86018605811125
>
> -Original Message-
> From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of EXT Kristian
> Sent: Friday, April 08, 2016 5:16 AM
> To: Domen Vrankar 
> Cc: cmake@cmake.org
> Subject: Re: [CMake] Fwd: CPack does not generate a RPM
>
> Thank you for your answer. Setting the variable
> CPACK_RPM_PACKAGE_AUTOREQ to "NO" worked.
>
> I also tried to produce a minimal example, which produces such error
> as the behaviour I described. But I couldn't generate such an example.
> I do not know currently, under which circumstances this happens :(.
>
> My assumptions are the same, that this seems to be a rpm issue.
>
> 2016-04-07 19:39 GMT+02:00 Domen Vrankar :
>>> Let's assume, I have a library, e.g. liblibrary.so.5.6.7 and I have
>>> two symbolic links, so the result of "ls -l" would look like this
>>>
>>> liblibrary.so -> liblibrary.so.0
>>> liblibrary.so.0 -> liblibrary.so.5.6.7
>>> liblibrary.so.5.6.7
>>>
>>> And let's assume, I have these lines in my CMakeLists.txt:
>>>
>>> ***
>>> set(LIBRARIES
>>> ${LIB}/liblibrary.so
>>> ${LIB}/liblibrary.so.0
>>> ${LIB}/liblibrary.so.5.6.7)
>>> #...
>>> install(FILES ${LIBRARIES} DESTINATION lib)
>>> ***
>>>
>>> Now, I call the commands "cmake . && make package" and I get a package
>>> "project1.1-Linux.rpm". After that, I try to install that package with
>>> "yum install project1.1-Linux.rpm", I get some strange dependency
>>> resolution errors, which would look like this
>>>
>>> --> Finished Dependency Resolution
>>> Error: Package: project1.1-1.x86_64 (/project1.1-Linux)
>>>Requires: liblibrary.so.0()(64bit)
>>>  You could try using --skip-broken to work around the problem
>>>  You could try running: rpm -Va --nofiles --nodigest
>>
>> Hi,
>>
>> Not certain why that dependency problem occurs - will have to look
>> into it a bit further but it seems to be rpm issue (somehow it gets
>> the file dependencies wrong with symlinks to symlinks).
>>
>> As a workaround you could disable auto requirements generation by setting:
>> set(CPACK_RPM_PACKAGE_AUTOREQ "NO")
>>
>> Regards,
>> Domen
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more 
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] Is there any ongoing work to support toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7)

2016-04-08 Thread Gilles Khouzam
Yes, support has been added to the nightly builds. Mariusz has added support 
for this.

-Original Message-
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of 
foru...@smartmobili.com
Sent: Friday, April 1, 2016 03:16
To: CMake ML 
Subject: [CMake] Is there any ongoing work to support toolset Clang 3.7 with 
Microsoft CodeGen (v140_clang_3_7)

Hi,

Microsoft has released a new toolset using clang for the code analysis and with 
VS2015 code generator.

https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fblogs.msdn.microsoft.com%2fvcblog%2f2015%2f12%2f04%2fclang-with-microsoft-codegen-in-vs-2015-update-1%2f=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=pG0Tv%2fvB9Qjmmq9aEb82DM%2bSBDwJlzy4A2jLVaZ%3d
https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fblogs.msdn.microsoft.com%2fvcblog%2f2016%2f01%2f20%2fclang-with-microsoft-codegen-january-2016-released%2f=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=9QSxh%2byHPkdB%2f8Ol6wDSWum3FOdoQ435OxhSy3OKgrQ%3d

IS there any ongoing work to support the v140_clang_3_7 for VS2015 ?
Something like:

> cmake -G "Visual Studio 14 2015" -T v140_clang_3_7

For the moment if I want to test I have to use the VS2015 generator and then 
manually change the Platform Toolset and warnings level


Thanks

-- 

Powered by 
https://na01.safelinks.protection.outlook.com/?url=www.kitware.com=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=G%2fForWqFnK6XXeeF3vjeXa79YHIUSYws0CePiG5ItFQ%3d

Please keep messages on-topic and check the CMake FAQ at: 
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.cmake.org%2fWiki%2fCMake_FAQ=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=xrhX%2bbBpZxVQVAdv8iFCPFavIPfIPQcrANkav5wO%2bnY%3d

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: 
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fcmake.org%2fcmake%2fhelp%2fsupport.html=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=2ob5oRjXSxdeHTP2SuA6ZAny0E30TH39gNr0gWNVLT0%3d
CMake Consulting: 
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fcmake.org%2fcmake%2fhelp%2fconsulting.html=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=cz13%2bFeBXYuzEwIo7EssNynhGTT3YopW1p9txFe684g%3d
CMake Training Courses: 
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fcmake.org%2fcmake%2fhelp%2ftraining.html=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=6ebJasb%2fjhGk3YD7u86BkS%2fV%2frjj9V1bljHHLHWYfdM%3d

Visit other Kitware open-source projects at 
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.kitware.com%2fopensource%2fopensource.html=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=99k6IYFVxiJdsEViMOj9ML5BTaPkMBnFqsdLJTEKbcs%3d

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fpublic.kitware.com%2fmailman%2flistinfo%2fcmake=01%7c01%7cgilles.khouzam%40microsoft.com%7c7703c2a8b7cb4a2db79b08d35a17a4c0%7c72f988bf86f141af91ab2d7cd011db47%7c1=uzH5ImTCdJ7DHdLQ3bGF82wF%2bBXf2RwHSBH6w6osnUY%3d
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] Include XYZ.cmake from external project

2016-04-08 Thread Matthias Möller
Dear all,

I have difficulties including a XYZ.cmake file from an external project.

ExternalProject_Add(MTL4
SVN_REPOSITORYhttps://simunova.zih.tu-dresden.de/svn/mtl4/trunk
SVN_USERNAME  guest
SVN_PASSWORD  guest
SVN_TRUST_CERT1
TIMEOUT   180
PREFIX${CMAKE_BINARY_DIR}/external/MTL4
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND   “"
)

ExternalProject_Get_Property(MTL4 source_dir)
set(MTL4_INCLUDE_DIRS ${source_dir})
set(MTL_DIR ${source_dir})

# Include MTLConfig from the unpacked(!!!) MTL4 library
include("${source_dir}/MTLConfig.cmake" OPTIONAL RESULT_VARIABLE 
MTLCONFIG_FOUND)


# MTL4 is a header-only library, hence downloading and unpacking is sufficient
add_executable (demo demo.cxx)
add_dependencies(demo MTL4)

The problem is, that in a fresh build the MTL4 library is not yet unpacked, and 
hence, the MTLConfig.cmake file is not available.
How can I “include(…)” a cmake file which is only available after the external 
project has been processed?

Kind regards,
Matthias

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] Include XYZ.cmake from external project

2016-04-08 Thread Nicholas Braden
To solve the dependency order problem, generally you would make a
superbuild which builds your dependencies and also your own project
via ExternalProject, using the DEPENDS option to guarantee build
order. This way all your dependencies are fully built and installed
before it even gets to configuring your own project.

On Fri, Apr 8, 2016 at 3:25 PM, Matthias Möller  wrote:
> Dear all,
>
> I have difficulties including a XYZ.cmake file from an external project.
>
> ExternalProject_Add(MTL4
> SVN_REPOSITORYhttps://simunova.zih.tu-dresden.de/svn/mtl4/trunk
> SVN_USERNAME  guest
> SVN_PASSWORD  guest
> SVN_TRUST_CERT1
> TIMEOUT   180
> PREFIX${CMAKE_BINARY_DIR}/external/MTL4
> CONFIGURE_COMMAND ""
> BUILD_COMMAND ""
> INSTALL_COMMAND   “"
> )
>
> ExternalProject_Get_Property(MTL4 source_dir)
> set(MTL4_INCLUDE_DIRS ${source_dir})
> set(MTL_DIR ${source_dir})
>
> # Include MTLConfig from the unpacked(!!!) MTL4 library
> include("${source_dir}/MTLConfig.cmake" OPTIONAL RESULT_VARIABLE
> MTLCONFIG_FOUND)
>
>
> # MTL4 is a header-only library, hence downloading and unpacking is
> sufficient
> add_executable (demo demo.cxx)
> add_dependencies(demo MTL4)
>
> The problem is, that in a fresh build the MTL4 library is not yet unpacked,
> and hence, the MTLConfig.cmake file is not available.
> How can I “include(…)” a cmake file which is only available after the
> external project has been processed?
>
> Kind regards,
> Matthias
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] Fwd: CPack does not generate a RPM

2016-04-08 Thread Wang, Peng 1. (Nokia - CN/Hangzhou)
Hi,

Sorry guys, I am busy on some prioritized tasks.
I've made a simple example, can I send in attachment? Or maybe I shall send the 
attachment only to you two? 

Wang Peng (Rex)
Seat: 21F
HZ SE Team
+86018605811125

-Original Message-
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of EXT Kristian
Sent: Friday, April 08, 2016 5:16 AM
To: Domen Vrankar 
Cc: cmake@cmake.org
Subject: Re: [CMake] Fwd: CPack does not generate a RPM

Thank you for your answer. Setting the variable
CPACK_RPM_PACKAGE_AUTOREQ to "NO" worked.

I also tried to produce a minimal example, which produces such error
as the behaviour I described. But I couldn't generate such an example.
I do not know currently, under which circumstances this happens :(.

My assumptions are the same, that this seems to be a rpm issue.

2016-04-07 19:39 GMT+02:00 Domen Vrankar :
>> Let's assume, I have a library, e.g. liblibrary.so.5.6.7 and I have
>> two symbolic links, so the result of "ls -l" would look like this
>>
>> liblibrary.so -> liblibrary.so.0
>> liblibrary.so.0 -> liblibrary.so.5.6.7
>> liblibrary.so.5.6.7
>>
>> And let's assume, I have these lines in my CMakeLists.txt:
>>
>> ***
>> set(LIBRARIES
>> ${LIB}/liblibrary.so
>> ${LIB}/liblibrary.so.0
>> ${LIB}/liblibrary.so.5.6.7)
>> #...
>> install(FILES ${LIBRARIES} DESTINATION lib)
>> ***
>>
>> Now, I call the commands "cmake . && make package" and I get a package
>> "project1.1-Linux.rpm". After that, I try to install that package with
>> "yum install project1.1-Linux.rpm", I get some strange dependency
>> resolution errors, which would look like this
>>
>> --> Finished Dependency Resolution
>> Error: Package: project1.1-1.x86_64 (/project1.1-Linux)
>>Requires: liblibrary.so.0()(64bit)
>>  You could try using --skip-broken to work around the problem
>>  You could try running: rpm -Va --nofiles --nodigest
>
> Hi,
>
> Not certain why that dependency problem occurs - will have to look
> into it a bit further but it seems to be rpm issue (somehow it gets
> the file dependencies wrong with symlinks to symlinks).
>
> As a workaround you could disable auto requirements generation by setting:
> set(CPACK_RPM_PACKAGE_AUTOREQ "NO")
>
> Regards,
> Domen
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[cmake-developers] Integration of clang-tidy

2016-04-08 Thread Daniel Pfeifer
Hi,

I implemented the integration of `clang-tidy` along the lines of the
`include-what-you-use` integration.
There is a new `_CLANG_TIDY` target property that is initialized
with the value of the `CMAKE__CLANG_TIDY` variable.
It contains the command line for `clang-tidy` as a ;-list.

Example use:

$ cmake -DCMAKE_CXX_CLANG_TIDY:STRING="clang-tidy;-checks=-*,readability-*" ..
$ cmake --build .

It is also possible to let `clang-tidy` apply fixit hints directly:

$ cmake 
-DCMAKE_CXX_CLANG_TIDY:STRING="clang-tidy;-checks=-*,readability-redundant-string-cstr;-fix"
..

The output is recognized by CTest's diagnostic parser. I haven't
checked how they look on CDash.

cheers, Daniel
From c1996b295d2e49134b6f5ef2be690588e5bf2732 Mon Sep 17 00:00:00 2001
From: Daniel Pfeifer 
Date: Fri, 8 Apr 2016 22:09:27 +0200
Subject: [PATCH] Provide integration for clang-tidy

---
 Help/manual/cmake-properties.7.rst |  1 +
 Help/manual/cmake-variables.7.rst  |  1 +
 Help/prop_tgt/LANG_CLANG_TIDY.rst  | 13 
 Help/release/dev/clang-tidy.rst|  7 ++
 Help/variable/CMAKE_LANG_CLANG_TIDY.rst|  6 ++
 Source/cmMakefileTargetGenerator.cxx   | 19 -
 Source/cmNinjaTargetGenerator.cxx  | 18 -
 Source/cmTarget.cxx|  2 +
 Source/cmcmd.cxx   | 80 --
 Tests/RunCMake/CMakeLists.txt  |  2 +
 Tests/RunCMake/ClangTidy/C-Build-stdout.txt|  1 +
 Tests/RunCMake/ClangTidy/C-launch-Build-stdout.txt |  1 +
 Tests/RunCMake/ClangTidy/C-launch.cmake|  3 +
 Tests/RunCMake/ClangTidy/C.cmake   |  3 +
 Tests/RunCMake/ClangTidy/CMakeLists.txt|  3 +
 Tests/RunCMake/ClangTidy/CXX-Build-stdout.txt  |  1 +
 .../RunCMake/ClangTidy/CXX-launch-Build-stdout.txt |  1 +
 Tests/RunCMake/ClangTidy/CXX-launch.cmake  |  3 +
 Tests/RunCMake/ClangTidy/CXX.cmake |  3 +
 Tests/RunCMake/ClangTidy/RunCMakeTest.cmake| 22 ++
 Tests/RunCMake/ClangTidy/main.c|  1 +
 Tests/RunCMake/ClangTidy/main.cxx  |  1 +
 Tests/RunCMake/pseudo_tidy.c   | 16 +
 23 files changed, 181 insertions(+), 27 deletions(-)
 create mode 100644 Help/prop_tgt/LANG_CLANG_TIDY.rst
 create mode 100644 Help/release/dev/clang-tidy.rst
 create mode 100644 Help/variable/CMAKE_LANG_CLANG_TIDY.rst
 create mode 100644 Tests/RunCMake/ClangTidy/C-Build-stdout.txt
 create mode 100644 Tests/RunCMake/ClangTidy/C-launch-Build-stdout.txt
 create mode 100644 Tests/RunCMake/ClangTidy/C-launch.cmake
 create mode 100644 Tests/RunCMake/ClangTidy/C.cmake
 create mode 100644 Tests/RunCMake/ClangTidy/CMakeLists.txt
 create mode 100644 Tests/RunCMake/ClangTidy/CXX-Build-stdout.txt
 create mode 100644 Tests/RunCMake/ClangTidy/CXX-launch-Build-stdout.txt
 create mode 100644 Tests/RunCMake/ClangTidy/CXX-launch.cmake
 create mode 100644 Tests/RunCMake/ClangTidy/CXX.cmake
 create mode 100644 Tests/RunCMake/ClangTidy/RunCMakeTest.cmake
 create mode 100644 Tests/RunCMake/ClangTidy/main.c
 create mode 100644 Tests/RunCMake/ClangTidy/main.cxx
 create mode 100644 Tests/RunCMake/pseudo_tidy.c

diff --git a/Help/manual/cmake-properties.7.rst b/Help/manual/cmake-properties.7.rst
index 73d1142..3403dcd 100644
--- a/Help/manual/cmake-properties.7.rst
+++ b/Help/manual/cmake-properties.7.rst
@@ -197,6 +197,7 @@ Properties on Targets
/prop_tgt/JOB_POOL_COMPILE
/prop_tgt/JOB_POOL_LINK
/prop_tgt/LABELS
+   /prop_tgt/LANG_CLANG_TIDY
/prop_tgt/LANG_COMPILER_LAUNCHER
/prop_tgt/LANG_INCLUDE_WHAT_YOU_USE
/prop_tgt/LANG_VISIBILITY_PRESET
diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst
index 3f73b32..7cf3a3d 100644
--- a/Help/manual/cmake-variables.7.rst
+++ b/Help/manual/cmake-variables.7.rst
@@ -259,6 +259,7 @@ Variables that Control the Build
/variable/CMAKE_INSTALL_RPATH
/variable/CMAKE_INSTALL_RPATH_USE_LINK_PATH
/variable/CMAKE_IOS_INSTALL_COMBINED
+   /variable/CMAKE_LANG_CLANG_TIDY
/variable/CMAKE_LANG_COMPILER_LAUNCHER
/variable/CMAKE_LANG_INCLUDE_WHAT_YOU_USE
/variable/CMAKE_LANG_VISIBILITY_PRESET
diff --git a/Help/prop_tgt/LANG_CLANG_TIDY.rst b/Help/prop_tgt/LANG_CLANG_TIDY.rst
new file mode 100644
index 000..2887e23
--- /dev/null
+++ b/Help/prop_tgt/LANG_CLANG_TIDY.rst
@@ -0,0 +1,13 @@
+_CLANG_TIDY
+-
+
+This property is implemented only when  is ``C`` or ``CXX``.
+
+Specify a :ref:`;-list ` containing a command
+line for the ``clang-tidy`` tool.  The :ref:`Makefile Generators`
+and the :generator:`Ninja` generator will run this tool along with the
+compiler and report a warning if the tool reports any problems.
+
+This property is initialized by the value of
+the :variable:`CMAKE__CLANG_TIDY` variable if it is set
+when a target is created.
diff --git 

[Cmake-commits] CMake branch, next, updated. v3.5.1-869-g4a2613a

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
   via  4a2613a52302d6c09d557af2d97d0c513307d84a (commit)
   via  a1c402910c2010c0ec91d6325b4119ce0fe8379b (commit)
   via  c79f88b0197eeb927100769ef5c4cef0275acf3a (commit)
   via  2f76effd0a8fd7bb25941891ca9603d27f1c571f (commit)
  from  8554832559700c8cda4ed2bdedfcd157addf9a94 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4a2613a52302d6c09d557af2d97d0c513307d84a
commit 4a2613a52302d6c09d557af2d97d0c513307d84a
Merge: 8554832 a1c4029
Author: Brad King 
AuthorDate: Fri Apr 8 08:48:30 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Apr 8 08:48:30 2016 -0400

Merge topic 'GetPrerequisites-more-dumpbin-paths' into next

a1c40291 GetPrerequisites: Look for VS tools using environment variables
c79f88b0 GetPrerequisites: add path of VS 10,11,12,14 in order to find 
dumpbin.exe
2f76effd CMake Nightly Date Stamp


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a1c402910c2010c0ec91d6325b4119ce0fe8379b
commit a1c402910c2010c0ec91d6325b4119ce0fe8379b
Author: Brad King 
AuthorDate: Fri Apr 8 08:46:31 2016 -0400
Commit: Brad King 
CommitDate: Fri Apr 8 08:48:20 2016 -0400

GetPrerequisites: Look for VS tools using environment variables

The `VS*COMNTOOLS` environment variables specify locations of VS tools
and are set during the VS installation.  Use them in addition to the
hard-coded default install locations.

diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index f32e289..dd294f4 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -663,14 +663,21 @@ function(get_prerequisites target prerequisites_var 
exclude_system recurse exepa
   endif()
 
   set(gp_cmd_paths ${gp_cmd_paths}
+"$ENV{VS140COMNTOOLS}/../../VC/bin"
 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin"
+"$ENV{VS120COMNTOOLS}/../../VC/bin"
 "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin"
+"$ENV{VS110COMNTOOLS}/../../VC/bin"
 "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin"
+"$ENV{VS100COMNTOOLS}/../../VC/bin"
 "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin"
+"$ENV{VS90COMNTOOLS}/../../VC/bin"
 "C:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
 "C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin"
+"$ENV{VS80COMNTOOLS}/../../VC/bin"
 "C:/Program Files/Microsoft Visual Studio 8/VC/BIN"
 "C:/Program Files (x86)/Microsoft Visual Studio 8/VC/BIN"
+"$ENV{VS71COMNTOOLS}/../../VC7/bin"
 "C:/Program Files/Microsoft Visual Studio .NET 2003/VC7/BIN"
 "C:/Program Files (x86)/Microsoft Visual Studio .NET 2003/VC7/BIN"
 "/usr/local/bin"

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c79f88b0197eeb927100769ef5c4cef0275acf3a
commit c79f88b0197eeb927100769ef5c4cef0275acf3a
Author: FARBOS Arnaud 
AuthorDate: Fri Apr 8 10:00:55 2016 +0200
Commit: Brad King 
CommitDate: Fri Apr 8 08:48:03 2016 -0400

GetPrerequisites: add path of VS 10,11,12,14 in order to find dumpbin.exe

diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 9ea1281..f32e289 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -663,6 +663,10 @@ function(get_prerequisites target prerequisites_var 
exclude_system recurse exepa
   endif()
 
   set(gp_cmd_paths ${gp_cmd_paths}
+"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin"
+"C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin"
+"C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin"
+"C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin"
 "C:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
 "C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin"
 "C:/Program Files/Microsoft Visual Studio 8/VC/BIN"

---

Summary of changes:
 Modules/GetPrerequisites.cmake |   11 +++
 Source/CMakeVersion.cmake  |2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.5.1-423-gf6c5958

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  f6c5958047ee8a9084bf230a6c1acb4801cb2b93 (commit)
   via  add7abc8352b87184579401cb2493c72e07aa212 (commit)
   via  ff805113c766371677b97d94cd3092cf6ff0bbf6 (commit)
  from  1baf2cbd3dfd76aadcbfd84f6d42d13fcb838218 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f6c5958047ee8a9084bf230a6c1acb4801cb2b93
commit f6c5958047ee8a9084bf230a6c1acb4801cb2b93
Merge: 1baf2cb add7abc
Author: Brad King 
AuthorDate: Fri Apr 8 09:03:59 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Apr 8 09:03:59 2016 -0400

Merge topic 'ninja-restat-custom-command-byproducts'

add7abc8 Ninja: Restat custom command byproducts even with a SYMBOLIC 
output (#16049)
ff805113 Ninja: Fix detection of custom command symbolic outputs

diff --cc Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
index 6b2b85a,0dd27d4..8541070
--- a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
+++ b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
@@@ -39,48 -39,5 +39,49 @@@ if(NOT RunCMake_GENERATOR MATCHES "Visu
unset(run_BuildDepends_skip_step_2)
  endif()
  
+ run_BuildDepends(Custom-Symbolic-and-Byproduct)
  run_BuildDepends(Custom-Always)
 +
 +if(RunCMake_GENERATOR MATCHES "Make" AND
 +   NOT "${RunCMake_BINARY_DIR}" STREQUAL "${RunCMake_SOURCE_DIR}")
 +  run_BuildDepends(MakeInProjectOnly)
 +endif()
 +
 +function(run_ReGeneration)
 +  # test re-generation of project even if CMakeLists.txt files disappeared
 +
 +  # Use a single build tree for a few tests without cleaning.
 +  set(RunCMake_TEST_BINARY_DIR 
${RunCMake_BINARY_DIR}/regenerate-project-build)
 +  set(RunCMake_TEST_SOURCE_DIR 
${RunCMake_BINARY_DIR}/regenerate-project-source)
 +  set(RunCMake_TEST_NO_CLEAN 1)
 +  file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
 +  file(REMOVE_RECURSE "${RunCMake_TEST_SOURCE_DIR}")
 +  set(ProjectHeader [=[
 +cmake_minimum_required(VERSION 3.5)
 +project(Regenerate-Project NONE)
 +  ]=])
 +
 +  # create project with subdirectory
 +  file(WRITE "${RunCMake_TEST_SOURCE_DIR}/CMakeLists.txt" "${ProjectHeader}"
 +"add_subdirectory(mysubdir)")
 +  file(MAKE_DIRECTORY "${RunCMake_TEST_SOURCE_DIR}/mysubdir")
 +  file(WRITE "${RunCMake_TEST_SOURCE_DIR}/mysubdir/CMakeLists.txt" "# empty")
 +
 +  run_cmake(Regenerate-Project)
 +  execute_process(COMMAND ${CMAKE_COMMAND} -E sleep ${fs_delay})
 +
 +  # now we delete the subdirectory and adjust the CMakeLists.txt
 +  file(REMOVE_RECURSE "${RunCMake_TEST_SOURCE_DIR}/mysubdir")
 +  file(WRITE "${RunCMake_TEST_SOURCE_DIR}/CMakeLists.txt" "${ProjectHeader}")
 +
 +  run_cmake_command(Regenerate-Project-Directory-Removed
 +${CMAKE_COMMAND} --build "${RunCMake_TEST_BINARY_DIR}")
 +
 +  unset(RunCMake_TEST_BINARY_DIR)
 +  unset(RunCMake_TEST_SOURCE_DIR)
 +  unset(RunCMake_TEST_NO_CLEAN)
 +endfunction()
 +
 +if(RunCMake_GENERATOR STREQUAL "Xcode")
 +  run_ReGeneration(regenerate-project)
 +endif()

---

Summary of changes:
 Source/cmLocalNinjaGenerator.cxx   |4 +--
 .../Custom-Symbolic-and-Byproduct.cmake|   28 
 Tests/RunCMake/BuildDepends/RunCMakeTest.cmake |1 +
 3 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 
Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.5.1-874-g485e5b8

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
   via  485e5b80cffaaff53db3dfab3b5461598d634c35 (commit)
   via  f6c5958047ee8a9084bf230a6c1acb4801cb2b93 (commit)
  from  34efd46f8b8302a97ae1fcd6821261124b58 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=485e5b80cffaaff53db3dfab3b5461598d634c35
commit 485e5b80cffaaff53db3dfab3b5461598d634c35
Merge: 34e f6c5958
Author: Brad King 
AuthorDate: Fri Apr 8 09:04:17 2016 -0400
Commit: Brad King 
CommitDate: Fri Apr 8 09:04:17 2016 -0400

Merge branch 'master' into next


---

Summary of changes:


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, release, updated. v3.5.1-14-g9729dfb

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, release has been updated
   via  9729dfb76547cf88183314ece57cb14e1d20f046 (commit)
   via  add7abc8352b87184579401cb2493c72e07aa212 (commit)
   via  ff805113c766371677b97d94cd3092cf6ff0bbf6 (commit)
   via  4ffd85cfb598c3927db7a7acf2f9af4131be488e (commit)
   via  f831d752aeb3000a9b1b686da986af7ffecb6968 (commit)
   via  dff812cfcda98260e6c4caf0c3cc2f260ba22722 (commit)
   via  2308764b476d6f6c399fe6a22bb0545d511bdbb1 (commit)
  from  58a57105d04564a954256f8441809a4e33a3cb67 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
---

Summary of changes:
 Modules/FindGSL.cmake  |2 +-
 Source/cmFortranParserImpl.cxx |2 +-
 Source/cmLocalNinjaGenerator.cxx   |4 +--
 .../Custom-Symbolic-and-Byproduct.cmake|   28 
 Tests/RunCMake/BuildDepends/RunCMakeTest.cmake |1 +
 5 files changed, 33 insertions(+), 4 deletions(-)
 create mode 100644 
Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.5.1-879-g334ecf8

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
   via  334ecf8dd559b07d100175a53965e0cf858676d7 (commit)
   via  2b58cf8e869a25a7557e0456d62818360e606395 (commit)
   via  9729dfb76547cf88183314ece57cb14e1d20f046 (commit)
   via  4ffd85cfb598c3927db7a7acf2f9af4131be488e (commit)
   via  dff812cfcda98260e6c4caf0c3cc2f260ba22722 (commit)
  from  485e5b80cffaaff53db3dfab3b5461598d634c35 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=334ecf8dd559b07d100175a53965e0cf858676d7
commit 334ecf8dd559b07d100175a53965e0cf858676d7
Merge: 485e5b8 2b58cf8
Author: Brad King 
AuthorDate: Fri Apr 8 09:06:06 2016 -0400
Commit: Brad King 
CommitDate: Fri Apr 8 09:06:06 2016 -0400

Merge branch 'master' into next


---

Summary of changes:


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.5.1-427-g2b58cf8

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  2b58cf8e869a25a7557e0456d62818360e606395 (commit)
   via  9729dfb76547cf88183314ece57cb14e1d20f046 (commit)
   via  4ffd85cfb598c3927db7a7acf2f9af4131be488e (commit)
   via  dff812cfcda98260e6c4caf0c3cc2f260ba22722 (commit)
  from  f6c5958047ee8a9084bf230a6c1acb4801cb2b93 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
---

Summary of changes:


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.5.1-420-g1baf2cb

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  1baf2cbd3dfd76aadcbfd84f6d42d13fcb838218 (commit)
   via  e888af97197ab8b14012b6478d570f4e4fd84703 (commit)
  from  2369f19a7a2fceacad32e137f1eb61bebcf9c608 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1baf2cbd3dfd76aadcbfd84f6d42d13fcb838218
commit 1baf2cbd3dfd76aadcbfd84f6d42d13fcb838218
Merge: 2369f19 e888af9
Author: Brad King 
AuthorDate: Fri Apr 8 09:01:53 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Apr 8 09:01:53 2016 -0400

Merge topic 'drop-DNDEBUG-space'

e888af97 MSVC: Drop space in `/DNDEBUG` flag for consistency (#16052)


---

Summary of changes:
 Modules/Platform/Windows-Intel-Fortran.cmake |6 +++---
 Modules/Platform/Windows-MSVC.cmake  |   12 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.5.1-872-g3dddd4e

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
   via  34efd46f8b8302a97ae1fcd6821261124b58 (commit)
   via  1baf2cbd3dfd76aadcbfd84f6d42d13fcb838218 (commit)
   via  2369f19a7a2fceacad32e137f1eb61bebcf9c608 (commit)
  from  4a2613a52302d6c09d557af2d97d0c513307d84a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=34efd46f8b8302a97ae1fcd6821261124b58
commit 34efd46f8b8302a97ae1fcd6821261124b58
Merge: 4a2613a 1baf2cb
Author: Brad King 
AuthorDate: Fri Apr 8 09:02:03 2016 -0400
Commit: Brad King 
CommitDate: Fri Apr 8 09:02:03 2016 -0400

Merge branch 'master' into next


---

Summary of changes:


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.5.1-418-g2369f19

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  2369f19a7a2fceacad32e137f1eb61bebcf9c608 (commit)
   via  7731e44f87ca9f70335f211a4ef64a1ea68c7f10 (commit)
   via  f9644a2d1b52fb566bdad9a7211a86a167d73859 (commit)
   via  24c9106b7b2c3729985b89b06a2732ee3f555022 (commit)
  from  2f76effd0a8fd7bb25941891ca9603d27f1c571f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2369f19a7a2fceacad32e137f1eb61bebcf9c608
commit 2369f19a7a2fceacad32e137f1eb61bebcf9c608
Merge: 2f76eff 7731e44
Author: Brad King 
AuthorDate: Fri Apr 8 09:01:50 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Apr 8 09:01:50 2016 -0400

Merge topic 'ninja-object-rsp'

7731e44f Ninja: Honor CMAKE_NINJA_FORCE_RESPONSE_FILE for compile rules
f9644a2d cmGlobalNinjaGenerator: Clarify logic for forcing use of response 
files
24c9106b cmNinjaTargetGenerator: Factor out helper for forced response file 
check


---

Summary of changes:
 Source/cmGlobalNinjaGenerator.cxx   |7 ---
 Source/cmGlobalNinjaGenerator.h |2 +-
 Source/cmNinjaNormalTargetGenerator.cxx |6 ++
 Source/cmNinjaTargetGenerator.cxx   |   35 +++
 Source/cmNinjaTargetGenerator.h |2 ++
 5 files changed, 40 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.5.1-865-g8554832

2016-04-08 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
   via  8554832559700c8cda4ed2bdedfcd157addf9a94 (commit)
   via  29bb7c105fe1710fb600dbc44c4f32fa84c0019c (commit)
  from  286b92460e972aa3be28be15cbb494a345dcaba0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8554832559700c8cda4ed2bdedfcd157addf9a94
commit 8554832559700c8cda4ed2bdedfcd157addf9a94
Merge: 286b924 29bb7c1
Author: Brad King 
AuthorDate: Fri Apr 8 08:43:45 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Apr 8 08:43:45 2016 -0400

Merge topic 'ninja-restat-custom-command-byproducts' into next

29bb7c10 fixup! Ninja: Restat custom command byproducts even with a 
SYMBOLIC output


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=29bb7c105fe1710fb600dbc44c4f32fa84c0019c
commit 29bb7c105fe1710fb600dbc44c4f32fa84c0019c
Author: Brad King 
AuthorDate: Fri Apr 8 08:32:29 2016 -0400
Commit: Brad King 
CommitDate: Fri Apr 8 08:43:28 2016 -0400

fixup! Ninja: Restat custom command byproducts even with a SYMBOLIC output

diff --git a/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake 
b/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake
index 8c16e05..687c827 100644
--- a/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake
+++ b/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake
@@ -2,7 +2,7 @@ add_custom_command(
   OUTPUT gen-byproduct gen-byproduct-stamp
   BYPRODUCTS byproduct
   COMMAND ${CMAKE_COMMAND} -E touch gen-byproduct-stamp
-  COMMAND ${CMAKE_COMMAND} -E copy_if_different 
${CMAKE_CURRENT_SOURCE_DIR}/main.c byproduct
+  COMMAND ${CMAKE_COMMAND} -E copy_if_different gen-byproduct-stamp byproduct
   )
 set_property(SOURCE gen-byproduct PROPERTY SYMBOLIC 1)
 add_custom_target(produce DEPENDS gen-byproduct)
@@ -10,6 +10,7 @@ add_custom_target(produce DEPENDS gen-byproduct)
 add_custom_command(
   OUTPUT use-byproduct
   DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/byproduct
+  COMMAND ${CMAKE_COMMAND} -E sleep 1.125 # workaround buggy filesystem 
timestamps
   COMMAND ${CMAKE_COMMAND} -E touch use-byproduct
   )
 add_custom_target(drive ALL DEPENDS use-byproduct)

---

Summary of changes:
 Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Harry Mallon
CMake's "if" functionality is missing greater than or equal to and less than or 
equal to. This change could be tweaked and added to provide this functionality 
to avoid things like "if(VERSION_STRING VERSION_GREATER "4.8.0" OR 
VERSION_STRING VERSION_EQUAL "4.8.0")".

Commit on github:
https://github.com/hm1992/CMake/commit/75b318f8809ae71685cad068cd2e8ce9f19fb28a

Would this be of interest for merging? I don't really have the time to do 
extensive testing on it at the moment.

Harry

Harry Mallon

CODEX | Software Engineer

60 Poland Street | London | England | W1F 7NT

E ha...@codexdigital.com | T +44 203 7000 
989

Website | Facebook 
| Twitter

[http://www.codexdigital.com/?action=asset=83095F5A-2233-47F5-9598-19228D7E37AE]
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Ben Boeckel
On Fri, Apr 08, 2016 at 14:24:08 +, Harry Mallon wrote:
> CMake's "if" functionality is missing greater than or equal to and
> less than or equal to. This change could be tweaked and added to
> provide this functionality to avoid things like "if(VERSION_STRING
> VERSION_GREATER "4.8.0" OR VERSION_STRING VERSION_EQUAL "4.8.0")".

This can also be done as:

if (NOT VERSION_STRING VERSION_LESS "4.8.0")

I'm ambivalent on the idea of new operators. Documentation for this
pattern would likely help.

--Ben
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Rolf Eike Beer
Am Freitag, 8. April 2016, 14:24:08 schrieb Harry Mallon:
> CMake's "if" functionality is missing greater than or equal to and less than
> or equal to. This change could be tweaked and added to provide this
> functionality to avoid things like "if(VERSION_STRING VERSION_GREATER
> "4.8.0" OR VERSION_STRING VERSION_EQUAL "4.8.0")".
> 
> Commit on github:
> https://github.com/hm1992/CMake/commit/75b318f8809ae71685cad068cd2e8ce9f19fb
> 28a
> 
> Would this be of interest for merging? I don't really have the time to do
> extensive testing on it at the moment.

The common way is to use the power of not:

LTE -> NOT GE
GTE -> NOT LE

Greetings,

Eike

signature.asc
Description: This is a digitally signed message part.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Brad King
On 04/08/2016 10:24 AM, Harry Mallon wrote:
> "if(VERSION_STRING VERSION_GREATER "4.8.0" OR VERSION_STRING VERSION_EQUAL 
> "4.8.0")".

As others have said this can be done with

if(NOT version VERSION_LESS 4.8.0)

> Commit on github:
> https://github.com/hm1992/CMake/commit/75b318f8809ae71685cad068cd2e8ce9f19fb28a

I don't think we have a strong use case for the proposed operators,
but I've taken a small cleanup from that commit:

 cmConditionEvaluator: Use pre-allocated keywords in more places
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=aff4a5fa

Thanks,
-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Harry Mallon
That is completely fair. Perhaps a bit of Friday brain from me. It still could 
reduce complexity if you are trying to do something more complicated.

In my opinion A is easier to read than B.

A: if ( $1 STRGREATER_EQ $2 AND $3 STRLESS $4 AND $5 STRLESS_EQ $6 )
B: if ( NOT $1 STRLESS $2 AND $3 STRLESS $4 AND NOT $5 STRGREATER $6)

H


Harry Mallon
CODEX | Software Engineer
60 Poland Street | London | England | W1F 7NT
E ha...@codexdigital.com | T +44 203 7000 989
> On 8 Apr 2016, at 15:42, Ben Boeckel  wrote:
>
> On Fri, Apr 08, 2016 at 14:24:08 +, Harry Mallon wrote:
>> CMake's "if" functionality is missing greater than or equal to and
>> less than or equal to. This change could be tweaked and added to
>> provide this functionality to avoid things like "if(VERSION_STRING
>> VERSION_GREATER "4.8.0" OR VERSION_STRING VERSION_EQUAL "4.8.0")".
>
> This can also be done as:
>
>if (NOT VERSION_STRING VERSION_LESS "4.8.0")
>
> I'm ambivalent on the idea of new operators. Documentation for this
> pattern would likely help.
>
> --Ben
>

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


[cmake-developers] [CMake 0016056]: file(GENERATE) not processing variables from INPUT file

2016-04-08 Thread Mantis Bug Tracker

The following issue has been SUBMITTED. 
== 
https://cmake.org/Bug/view.php?id=16056 
== 
Reported By:johnnyzz
Assigned To:
== 
Project:CMake
Issue ID:   16056
Category:   CMake
Reproducibility:always
Severity:   minor
Priority:   normal
Status: new
== 
Date Submitted: 2016-04-08 19:18 CEST
Last Modified:  2016-04-08 19:18 CEST
== 
Summary:file(GENERATE) not processing variables from INPUT
file
Description: 
There is a bug when generating a file with:

file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/output1.txt" 
  INPUT ${CMAKE_SOURCE_DIR}/input.txt
)

file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/output2.txt" 
  CONTENT "SOURCE DIR = '${CMAKE_SOURCE_DIR}'"
)

- Using "INPUT filename", variables are not processed, but "CONTENT text" with
the same content works properly

Steps to Reproduce: 
1) cmake .
2) cat output1.txt
3) cat output2.txt

-> The variable in output1.txt is not replaced by its value
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-08 19:18 johnnyzz   New Issue
2016-04-08 19:18 johnnyzz   File Added: CMakeLists.txt
==

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers