Re: [CMake] How to codesign .msi from WIX/CPack?

2016-09-07 Thread Eric Wing
On 9/7/16, David Cole wrote: > There may be a hook at the CPack level you can implement, but I'd have to > dig to figure out what it is and if it even presently exists. > > The easy thing to do would be to implement a custom target which does two > custom commands: the first the same as CPack (the

[CMake] [ANNOUNCE] CMake 3.6.2 available for download

2016-09-07 Thread Robert Maynard
We are pleased to announce that CMake 3.6.2 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! - Changes in 3.6.2 since 3.6.1: Ben Boe

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-07 Thread Cotton Candy
Here is the output from otool -L on skedmo-solver that you requested: skedmo-solver: libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) /usr/lib/libz.1.dylib (compatibility ve

Re: [CMake] User-overriding IMPORTED targets (overlaying libraries, ...)

2016-09-07 Thread Ivan Shapovalov
On 2016-09-01 at 18:57 +0200, Stephen Kelly wrote: > Ivan Shapovalov wrote: > > > > > Of course, I can always edit the FooConfig.cmake file manually, but > > I'd > > better avoid patching anything (installing new files or running any > > cmake commands is OK). > > > > Is there any nice way to so

[CMake] How can I silence a cmake warning?

2016-09-07 Thread Alessio
Hi All Quick question: how can silence the following warnings? Thank you! CMake Warning at cmake/TargetFunctions.cmake:383 (add_library): Cannot generate a safe runtime search path for target pyfinlinearPy because there is a cycle in the constraint graph: dir 0 is [/some/path] dir 2 must prece

[CMake] Visual Studios platform choice

2016-09-07 Thread Jack Stalnaker
Hi, I understand from reading this newgroup (e.g. https://cmake.org/pipermail/cmake/2013-March/053775.html) that the only way to support multiple platforms in Visual Studio is to run CMake multiple times, once for each platform. I'm porting some linux based code to the Windows world, and the Wind

[CMake] Using the same file in multiple tests with ExternalData

2016-09-07 Thread David Manthey
I found a bug using the same external data file with multiple tests. When I specify the same file in three different tests, I get an error: CMake Error: Attempt to add a custom rule to output "/home/ubuntu/misc/large_image/_build/data/plugins/large_image/sample_image.ptif.sha512-stamp.rule" which

Re: [CMake] How to codesign .msi from WIX/CPack?

2016-09-07 Thread David Cole via CMake
There may be a hook at the CPack level you can implement, but I'd have to dig to figure out what it is and if it even presently exists. The easy thing to do would be to implement a custom target which does two custom commands: the first the same as CPack (the built-in package target) and the se

Re: [CMake] Windows path too long

2016-09-07 Thread David Cole via CMake
I suppose the obvious "use shorter paths and names" is not possible or hard to enforce? David > On Sep 7, 2016, at 2:55 AM, Robert Bielik wrote: > > I have a problem with a VS 2015 project, where the build state path becomes > too long: > > SeverityCodeDescriptionProjectFil

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-07 Thread clinton
It may help to include the output of "otool -L" on skedmo-solver, /usr/lib/libmysqlclient.18.dylib and /Applications/MAMP/Library/lib/libmysqlclient.18.dylib. And it may also help to see if there is a difference in the otool output in the Xcode vs makefile scenario. Also, it may help to check

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-07 Thread Cotton Candy
Hi Peter, I attach my CMakeLists.txt file as well as the FindMySQL.cmake finder that I used, in case these help. I still get the same error when I run the executable: dyld: Library not loaded: libmysqlclient.18.dylib Referenced from: /Users/schurger/tmp/test_CMake2/./skedmo-solver Reason: imag

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-07 Thread Peter Steinbach
Hi Mr Candy (I am still getting a heck out of cottoncandycoder, sorry :D ) 1) the way you do it, is not really the way cmake should be used AFAIK. > In my CMakeLists.txt file I included: > set( CMAKE_CXX_FLAGS "-L/Applications/MAMP/Library/lib -lmysqlclient > -lpthread -lz" ) > set( CMAKE_EXE_LI