Re: [cmake-developers] [CMake] Windows rpath emulation

2014-09-23 Thread Nils Gladitz
On 09/20/2014 11:53 PM, Nils Gladitz wrote: On 20.09.2014 23:31, Roland Schulz wrote: it would be nice if there were a way to emulate rpath under Windows. As far as I can see there are two possible approaches: - Generate a shell script which sets PATH - Generate a manifest for the application

[cmake-developers] Was AUTOMOC designed to run for each build?

2014-09-23 Thread Stephen Kelly
Hi (especially Alex), I noticed that the automoc target is run each time, even for a trivial project: cmake_minimum_required(VERSION 2.8) project(automoctest) set(CMAKE_AUTOMOC ON) find_package(Qt5Widgets REQUIRED) add_executable(main main.cpp) target_link_libraries(main Qt5::Widgets)

[cmake-developers] iOS support

2014-09-23 Thread Florent Castelli
Hi! My company is organizing soon a hack week where each employee is able to work on any project he wants. So, I've decided to work with Cmake and improve support for iOS to help the product team getting rid of manual project files, constant merge conflicts and bad project file documentation,

[cmake-developers] [CMake 0015170]: CMAKE_SYSTEM_PROCESSOR is broken on Windows

2014-09-23 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=15170 == Reported By:stopiccot Assigned To:

Re: [cmake-developers] iOS support

2014-09-23 Thread Robert Maynard
The lowest hanging fruit would be to transition over to setting the global variable CMAKE_MACOSX_BUNDLE which is used to initialize the MACOSX_BUNDLE property on all the targets. CMake also supports CMAKE_XCODE_ATTRIBUTE global variables to allow easy code signing etc. Lastly have you looked at

Re: [cmake-developers] [CMake] Windows rpath emulation

2014-09-23 Thread David Cole via cmake-developers
What is the problem that this feature is trying to solve? It seems unnecessary to me as a first-class feature of CMake. I must be missing something... But if you do pursue something like this, it seems to me that install(TARGETS ...) should install all files including the wrapper. Is this only

Re: [cmake-developers] [CMake] Windows rpath emulation

2014-09-23 Thread Nils Gladitz
On 09/23/2014 03:11 PM, David Cole wrote: What is the problem that this feature is trying to solve? Being able to run binaries with DLL dependencies within the build tree. Basically the same thing that the build time RPATH feature does on e.g. linux. If you are e.g. linking to Qt5 (shared)

Re: [cmake-developers] iOS support

2014-09-23 Thread Bill Hoffman
On 9/23/2014 8:09 AM, Robert Maynard wrote: The lowest hanging fruit would be to transition over to setting the global variable CMAKE_MACOSX_BUNDLE which is used to initialize the MACOSX_BUNDLE property on all the targets. CMake also supports CMAKE_XCODE_ATTRIBUTE global variables to allow easy

Re: [cmake-developers] iOS support

2014-09-23 Thread Bill Hoffman
That said it would be really cool to beef up the xcode support enough to be able to create an actual ios app. I have not dug into that enough. Should be able to do most of it with CMAKE_XCODE_ATTRIBUTE. I will look into this try_compile COPY_FILE issue today and get back to the list. It

Re: [cmake-developers] iOS support

2014-09-23 Thread Florent Castelli
On 23 Sep 2014, at 16:56, Bill Hoffman bill.hoff...@kitware.com wrote: That said it would be really cool to beef up the xcode support enough to be able to create an actual ios app. I have not dug into that enough. Should be able to do most of it with CMAKE_XCODE_ATTRIBUTE. I will look

Re: [cmake-developers] iOS support

2014-09-23 Thread Bill Hoffman
On 9/23/2014 11:42 AM, Florent Castelli wrote: I also have a couple of patches for finding the binary during a try_compile that works with my other change to have an extra variable for the add_executable and I would need to change it. It's mostly changing cmCoreTryCompile::FindOutputFile() and

Re: [cmake-developers] [CMake] Windows rpath emulation

2014-09-23 Thread Nils Gladitz
On 23.09.2014 19:12, Roland Schulz wrote: Have you got a solution to the problem you mentioned in your first email: I suppose it might be slightly more complex given that the import library that is being linked to and the DLL that corresponds to the import library might not be in

Re: [cmake-developers] Was AUTOMOC designed to run for each build?

2014-09-23 Thread Alexander Neundorf
On Tuesday, September 23, 2014 09:58:58 Stephen Kelly wrote: Hi (especially Alex), I noticed that the automoc target is run each time, even for a trivial project: cmake_minimum_required(VERSION 2.8) project(automoctest) set(CMAKE_AUTOMOC ON) find_package(Qt5Widgets REQUIRED)

Re: [CMake] Ninja generator fail for QNX on Windows

2014-09-23 Thread Cristian Adam
On Mon, Sep 22, 2014 at 6:32 PM, Bill Hoffman bill.hoff...@kitware.com wrote: Maybe if you looked at the very first older than in your output instead of the dirty ones it might tell you what ninja thinks is out of date. Could be some sort of path issue that has something to do with the way

Re: [CMake] Ninja generator fail for QNX on Windows

2014-09-23 Thread Bill Hoffman
On 9/23/2014 9:05 AM, Cristian Adam wrote: On Mon, Sep 22, 2014 at 6:32 PM, Bill Hoffman bill.hoff...@kitware.com mailto:bill.hoff...@kitware.com wrote: Maybe if you looked at the very first older than in your output instead of the dirty ones it might tell you what ninja thinks is out

Re: [CMake] Ninja generator fail for QNX on Windows

2014-09-23 Thread Cristian Adam
On 23 Sep 2014 15:27, Bill Hoffman bill.hoff...@kitware.com wrote: Seems that gmake supports that: http://www.qnx.com/developers/docs/6.4.1/neutrino/prog/make_convent.html#Parallel In theory it should work, but the mingw version they ship doesn't work. I've upgraded to a version of make

[CMake] CPack WIX examples

2014-09-23 Thread jmerkow
Hello I am working on creating an msi installer using cpack with the WIX installer (converting from old system). Im having some trouble finding some good resources to do this. My project needs to set a number of registry entries. We have a few components, and licenses that are installed along

Re: [CMake] CPack WIX examples

2014-09-23 Thread Nils Gladitz
On 09/23/2014 04:34 PM, jmerkow wrote: Hello I am working on creating an msi installer using cpack with the WIX installer (converting from old system). Im having some trouble finding some good resources to do this. My project needs to set a number of registry entries. We have a few components,

Re: [CMake] Problems resolving PTHREAD_* symbols.

2014-09-23 Thread Rick McGuire
This is still driving us crazy. Digging a little deeper into this, the symbols we need are defined as enums on Linux, which explains why check_symbol_exists() does not work there. The OSX pthread.h header uses defines, but for some reason, the check_c_source_compiles method is still failing.

[CMake] How to get custom commands to build in parallel ?

2014-09-23 Thread Glenn Coombs
I have the following code in one of my CMakeLists.txt files: set(feature_files_h) set(feature_files_cpp) macro(create_feature_files NAME) add_custom_command( OUTPUT ${FEATURES_OUTPUT_DIR}/${NAME}.cpp ${FEATURES_OUTPUT_DIR}/${NAME}.h DEPENDS ${FEATURES_INPUT_DIR}/${NAME}.txt

Re: [CMake] Ninja generator fail for QNX on Windows

2014-09-23 Thread Hendrik Sattler
On 23. September 2014 16:22:40 MESZ, Cristian Adam QCC compiler generates for this project dependency files which look like: c:\projects\my_proj\include\/a.h \ c:\projects\my_proj\src\/a.cpp \ c:\projects\my_proj\other\..\/include/b.h \ c:\projects\my_proj\other\..\/src/b.cpp \ To me it

Re: [CMake] How to get custom commands to build in parallel ?

2014-09-23 Thread Robert Maynard
If you are using VS2013 you should look at the /maxcpucount flag which allows msbuild to build multiple projects at the same time. You will have to manually balance /MP and /maxcpucount as they cause a P*C number of processes to execute. On Tue, Sep 23, 2014 at 11:05 AM, Glenn Coombs

Re: [CMake] Problems resolving PTHREAD_* symbols.

2014-09-23 Thread Robert Maynard
To get information on why a try_compile is failing you can use the --debug-trycompile option which will stop CMake from deleting the try_compile build tree code. Now this flag is only useful on a single try_compile at a time. On Tue, Sep 23, 2014 at 10:50 AM, Rick McGuire object.r...@gmail.com

[CMake] Abuse try_compile to get DLL dependencies for win32 NSIS packaging?

2014-09-23 Thread Richard Shaw
Ok, this may or may not work but I figured it was worth a try. I'm running out of motivation to get a good method to determine which DLL's I need to package with the install(SCRIPT...) / GetPrerequisites mess. My current approach is to attempt to use try_compile to build a minimal program I can

[CMake] VTK compiling problem with CMake

2014-09-23 Thread lanhz
Hi, I'm trying use CMake to build VTK, but got error as below. I searched the internet and tried many ways suggested, but they didn't work. The OS is Windows 7 with Visual Studio 2010 Pro (up to date). I don't know how to solve. I'll appreciate your help. Error info from CMake-gui

Re: [CMake] VTK compiling problem with CMake

2014-09-23 Thread John Drescher
Did you try runing cmake-gui from a VisualStudio 2010 x64 command prompt? John On Tue, Sep 23, 2014 at 1:08 PM, lanhz h1...@ucsd.edu wrote: Hi, I'm trying use CMake to build VTK, but got error as below. I searched the internet and tried many ways suggested, but they didn't work. The OS is

Re: [CMake] VTK compiling problem with CMake

2014-09-23 Thread Bill Hoffman
On 9/23/2014 1:16 PM, John Drescher wrote: Did you try runing cmake-gui from a VisualStudio 2010 x64 command prompt? John This has to do with the version of cvtres.exe that you have installed on the machine:

Re: [CMake] VTK compiling problem with CMake

2014-09-23 Thread Daniel Schepler
1LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt When we've seen this, it's usually been due to .NET being upgraded to 4.5, which is incompatible with the tools in the original version of Visual Studio 2010. Upgrading Visual Studio 2010 to SP1 usually

Re: [CMake] ExternalProject_Add dependency graph (dot/graphviz?) ?

2014-09-23 Thread Micha Hergarden
On 09/22/2014 04:59 PM, Nicholas Yue wrote: Hi, CMake has graphviz output capability for dependency within a project. Is there a way to graph dependency at the ExternalProject_Add() level ? Cheers Hello Nicholas, Can you clarify your question a bit more? Do you mean 'show me the

Re: [CMake] ExternalProject_Add dependency graph (dot/graphviz?) ?

2014-09-23 Thread Nicholas Yue
Hi Micha, My interest is in show me the dependencies the external project depends on I am considering migrating an in-house build system to build opensource projects to using CMake. As there are many external packages and versions (close to 100), I'd like to be able to visualize their

[CMake] Fwd: Re: ExternalProject_Add dependency graph (dot/graphviz?) ?

2014-09-23 Thread Micha Hergarden
Hello Nicholas, I see what you mean. I have generated a build.ninja for an external project depeding on an external project, and the dotfile does show the dependency. The problem seems to be that the view is somewhat cluttered by the intermediate dependencies on custom_target etc. I guess it

Re: [CMake] CPack WIX examples

2014-09-23 Thread jmerkow
Thanks a lot for your help! Those examples are excellent. I have a follow up questions for creating the installer, though. We have a number of registry entries that need to be created for the software to run in 'release mode'. In our current system we add registry entries into the wxs, but I

Re: [CMake] VTK compiling problem with CMake

2014-09-23 Thread lanhz
Thank everyone! I installed VS SP1 and it work! ! -- View this message in context: http://cmake.3232098.n2.nabble.com/VTK-compiling-problem-with-CMake-tp7588569p7588577.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Please keep messages on-topic

[CMake] Object Library into Shared library

2014-09-23 Thread j s
Hello, According to: http://www.cmake.org/Wiki/CMake/Tutorials/Object_Library it is possible to compile OBJECT libraries for use in other targets, as of CMake 2.8.8. Unfortunately it doesn't document how to make the OBJECT position independent. Is the proper cross platform method to set

[CMake] get windows import lib location

2014-09-23 Thread j s
What is the proper way to get the import lib location for a windows dll? I've used GET_TARGET_PROPERTY(FOOPATH foo LOCATION) to get the location of the foo.dll, but I also need the path to foo.lib. Thanks, -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

[CMake] CMAKE_INSTALL_PREFIX problem

2014-09-23 Thread Jeremy Ardley
I am using cmake 2.8.9 on debian wheezy. I'm fairly new to using cmake. My CMakelists.txt file starts with cmake_minimum_required(VERSION 2.6) SET(CMAKE_INSTALL_PREFIX /home/jeremy/Projects/local/) project(myproject) Finishing with INSTALL ( PROGRAMS

[Cmake-commits] CMake branch, next, updated. v3.0.2-5419-gafac7f2

2014-09-23 Thread Stephen Kelly
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 afac7f22cea21995c6dde1d184e4ab3c0aefc055 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.0.2-5421-gcb0ecc9

2014-09-23 Thread Stephen Kelly
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 cb0ecc95d7da20b651f9e14e24235499a161a4b0 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.0.2-5426-g752fcae

2014-09-23 Thread Bill Hoffman
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 752fcaede3b811298a07b3326d22bd9bf1f77631 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.0.2-5428-g3989553

2014-09-23 Thread Stephen Kelly
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 3989553aae0bf67901dd141d7ebc86fa97dfe027 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.0.2-5430-g140be4f

2014-09-23 Thread Stephen Kelly
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 140be4fd07c907c814ea0161db3c593463b53d74 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.0.2-1911-g6bd776e

2014-09-23 Thread Kitware Robot
20140923) +set(CMake_VERSION_PATCH 20140924) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- CMake