Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Steven Stallion
A selfish request: would it be possible to slip this into the 3.5 release? This is something that I (and the company I work for) are very interested in, and I would like to avoid pulling a fork into our workstream. Cheers, Steve On Mon, Feb 1, 2016 at 8:47 AM, Gilles Khouzam wrote: > Hi Yi-Long

[CMake] CMake 3.5.0-rc1 install is missing dependencies

2016-02-03 Thread Thompson, KT
I downloaded cmake 3.5.0-rc1 to try it out. The Windows installation doesn’t appear to provide all the required dependencies. ‘cmake-gui’ will not launch and provides the error “Qt5Widgets.dll is missing form your computer.” Do I need to install a specific Qt runtime before installing cmake 3.5

Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

2016-02-03 Thread Robert Maynard
Hi, I have been able to replicate the problem with the Windows installer not properly installing the Qt libraries. I have tested the Linux x86_64 binaries on a Ubuntu 12.04 machine and everything works, but I will locate a RHEL machine and see if I can replicate your issue. On Wed, Feb 3, 2016 at

Re: [CMake] CPack and PackageMaker

2016-02-03 Thread Robert Maynard
The window for new CMake 3.5 features is closed now that we have started the release cycle. On Wed, Feb 3, 2016 at 12:42 AM, Roman Wüger wrote: > @Brad, @Clinton: Could we add this feature into CMake 3.5.0, because on > newer Mac OS systems the package maker is already deprecated and for those >

[CMake] xyz_LIBRARIES

2016-02-03 Thread Adam Rankin
Hello all, I am trying to sort out a project with multiple layers of dependencies and I am trying to figure out the "right" way of configuring things. First easy question: Should a value xyz_LIBRARIES contain target names, or library file locations? Second question: Should a FindXYZ.cmake file

Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

2016-02-03 Thread Brad King
On 02/03/2016 11:19 AM, Thompson, KT wrote: > The Windows installation doesn’t appear to provide all the > required dependencies. ‘cmake-gui’ will not launch and provides > the error “Qt5Widgets.dll is missing form your computer.” Ugh, after months of working correctly on the nightly binary builds

Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

2016-02-03 Thread Brad King
On 02/03/2016 11:19 AM, Thompson, KT wrote: > On RHEL 6.7, I extracted the prebuilt x86_64 binaries from the > downloaded .tar.gz file. At the end of the configuration process, > cmake issues a segmentation fault and no Makefiles are generated. What project are you configuring? Can you provide a

Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

2016-02-03 Thread Thompson, KT
I'm working on a reproducer. For now, all I can say is that it looks like the segmentation fault occurs on this command: install( EXPORT foo-targets DESTINATION foo EXPORT_LINK_INTERFACE_LIBRARIES ) -kt -Original Message- From: Brad King [mailto:brad.k...@kitware.com] Sent: Wednes

[CMake] Finding Packages Installed in Non-Standard Locations

2016-02-03 Thread Andrew Bell
If my package is installed to a non-standard location, my Config.cmake file is currently also installed to the non-standard location and can't be found by dependent projects. I see that there's export(PACKAGE ), but this creates an entry in the registry for the build location of the PROJECT rather

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Yi-Hong Lyu
Hello Gilles, Thanks for you mail. It is really useful to me but I encounter an error. My use case is to use clang-cl with my own target instead of x86/x64 target. Therefore I don't want to include any headers of VS x86/x64 and use any library of VS x86/x64: PS > cmake -G "Visual Studio 14 2015"

Re: [CMake] CPack RPM generator not using CPACK_RPM__XXX variables

2016-02-03 Thread Andrew Helten
Thanks Domen! The use of original-case for in CPACK_RPM__ was indeed the problem. I never did get the CPACK_RPM_*_PACKAGE_PREFIX variable to work but I'm using a different (probably more correct) approach that gets me what I wanted. Can this use of mixed case-sensitive/all-upper-case can be c

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Yi-Hong Lyu
Hello Gilles, Here it is: PS > cmake -G "Visual Studio 14 2015" -T v140_clang_3_7 -DLLVM_PATH="E:\\llvm" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_C_COMPILER="E:\\e2tools\\ext-tools\\llvm\\clang-cl.exe" -DCMAKE_CXX_COMPILER="E:\\e2tools\\ext-tools\\llvm\\clang-cl.exe" ..\src\ -- The CXX compiler identi

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Gilles Khouzam
Hi Yi-Hong, Can you try to add the following: -DCMAKE_SYSTEM_VERSION=8.1 to your parameters? From: Yi-Hong Lyu [mailto:b95705...@ntu.edu.tw] Sent: Wednesday, February 3, 2016 11:11 To: Gilles Khouzam Cc: Nicholas Braden ; cmake@cmake.org Subject: Re: [CMake] Is there any way to use clang-cl with

Re: [CMake] Finding Packages Installed in Non-Standard Locations

2016-02-03 Thread Alexander Neundorf
On Wednesday, February 03, 2016 13:08:42 Andrew Bell wrote: > If my package is installed to a non-standard location, my > Config.cmake file is currently also installed to the non-standard > location and can't be found by dependent projects. > > I see that there's export(PACKAGE ), but this creates

Re: [CMake] xyz_LIBRARIES

2016-02-03 Thread Craig Scott
On 4 February 2016 at 04:45, Adam Rankin wrote: > Hello all, > > > > I am trying to sort out a project with multiple layers of dependencies and > I am trying to figure out the “right” way of configuring things. > > > > First easy question: Should a value xyz_LIBRARIES contain target names, or > l

Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

2016-02-03 Thread Konstantin Podsvirov
Meet the fresh update online installers (CMake3.5.3.5.20160203): http://ifw.podsvirov.pro/cmake/cmake-master-win32-online.exe and http://ifw.podsvirov.pro/cmake/cmake-master-win64-online.exe If you have used them previously, then just update via "CMake Maintenance Tool". These installers were

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Gilles Khouzam
Hi Yi-Hong, I think that this is an issue that was recently fix in CMake which is not in our fork. I’ll look at pulling in this change in our branch. From: Yi-Hong Lyu [mailto:b95705...@ntu.edu.tw] Sent: Wednesday, February 3, 2016 11:46 To: Gilles Khouzam Cc: Nicholas Braden ; cmake@cmake.org

Re: [CMake] xyz_LIBRARIES

2016-02-03 Thread Adam Rankin
Ok, that makes sense to me. What I’m seeing though, is that find modules and xyzConfig files for some software packages do not make a variable available that contains just target names. Xyz_LIBRARIES contains full path file locations. This is my immediate frustration with leptonica for example.

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Gilles Khouzam
Hi Yi-Hong, I’ve updated our branch to include the fix to not require the Windows 10 SDK. But I think that I misunderstood what you had meant by Clang-CL. The support I added was for Clang with the Microsoft CodeGen engine which is included in Visual Studio 2015 Update 1, what’s where the v140_

Re: [CMake] Execute command after project generation

2016-02-03 Thread Petr Kmoch
Hi Nicolas. Last time I asked for something like that, it was rejected: http://public.kitware.com/Bug/view.php?id=13020 But maybe the stance could change on that? After all, I don't think CMake would want to cater for every possible postprocessing anyone needs. Perhaps it could be considered if a

Re: [CMake] Help for a cmake newbie

2016-02-03 Thread Petr Kmoch
Hi Vadtec. *The* standard CMake way of dealing with building your dependencies is the ExternalProject module ( https://cmake.org/cmake/help/latest/module/ExternalProject.html ). It's a huge beast, but I belive there are some examples and tutorials available out there. The gist is: you create a to