Re: [CMake] CMAKE_INSTALL_PREFIX problem

2014-09-23 Thread Petr Kmoch
I don't know why @ was inserted, but here's why it overrides the absolute path: because it has no special meaning. The path then becomes "@/sbin", which is not an absolute path (doesn't start with '/'), so the install prefix is prepended normally. Bear in mind that Unix directory and file names can

Re: [CMake] CMAKE_INSTALL_PREFIX problem

2014-09-23 Thread Petr Kmoch
Hi Jeremy. Does ${BUILD_BIN} perhaps start with a slash? If so, it would be interpreted as an absolute path, which of course ignores CMAKE_INSTALL_PREFIX. Petr On Wed, Sep 24, 2014 at 7:58 AM, Jeremy Ardley wrote: > I am using cmake 2.8.9 on debian wheezy. I'm fairly new to using cmake. > > M

[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_CURRENT_BINARY_DIR}/@APPLICATI

[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 at

[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 the

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 an

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 don

[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 depe

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 dep

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

Re: [CMake] VTK compiling problem with CMake

2014-09-23 Thread Daniel Schepler
1>LINK : 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

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: http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-

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 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 > Windows 7 w

[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 -

[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 l

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 wrote: > This is still d

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 wrote: > I h

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/

[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] 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. We'

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,

[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 wi

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

2014-09-23 Thread Cristian Adam
On 23 Sep 2014 15:27, "Bill Hoffman" 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 which does (one needs

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 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 of date. Could be so

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 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 the paths are > construc