Re: [CMake] target_link_libraries issues

2013-05-30 Thread Rolf Eike Beer
joza404 wrote: > Hello everyone, I just started using Cmake and I got a weird issue without a > peep. > Let's take a look a simplest-ever-seen CmakeList: Even too complicated ;) I have no idea about this specific problems, but some general remarks. > /cmake_minimum_required(VERSION 2.8) > projec

[CMake] target_link_libraries issues

2013-05-30 Thread joza404
Hello everyone, I just started using Cmake and I got a weird issue without a peep. Let's take a look a simplest-ever-seen CmakeList: /cmake_minimum_required(VERSION 2.8) project(test) find_package(SDL REQUIRED) if(NOT SDL_FOUND) message(SEND_ERROR "Failted to find SDL") return() el

Re: [CMake] write file if different?

2013-05-30 Thread Matthew Woehlke
On 2013-05-29 03:32, Michael Wild wrote: On 28.05.2013 22:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this way despite no obvious hint in the d

Re: [CMake] write file if different?

2013-05-30 Thread Matthew Woehlke
On 2013-05-30 17:24, J Decker wrote: On Tue, May 28, 2013 at 1:07 PM, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this way despite no obvious hint

Re: [CMake] write file if different?

2013-05-30 Thread J Decker
On Tue, May 28, 2013 at 1:07 PM, Matthew Woehlke wrote: > Is there a built-in way to write a string to a file (a la FILE(WRITE)) that > will only write the file if the content would be different? (Or does > FILE(WRITE) already work this way despite no obvious hint in the > documentation that it do

Re: [CMake] Need help with ExternalProject_Add file dependencies

2013-05-30 Thread Alan W. Irwin
On 2013-05-30 04:16-0700 Alan W. Irwin wrote: On 2013-05-30 02:22-0700 Alan W. Irwin wrote: Why do two build steps (6 and 7) have to be done to satisfy the file depends after the touch? I must be doing something wrong with the file depends above, but I cannot see what it is. Actually, this

Re: [CMake] write file if different?

2013-05-30 Thread j s
On Thu, May 30, 2013 at 12:36 PM, Matthew Woehlke wrote: > On 2013-05-30 12:11, j s wrote: >> >> On Wed, May 29, 2013 at 11:14 PM, them...@gmail.com wrote: >>> >>> "j s" wrote: On 28.05.2013 22:07, Matthew Woehlke wrote: > > Is there a built-in way to write a string to a file (a

Re: [CMake] Target Properties FOLDER not working?

2013-05-30 Thread Michael Jackson
On May 30, 2013, at 1:58 PM, John Drescher wrote: > On Thu, May 30, 2013 at 1:53 PM, Michael Jackson > wrote: >> I am trying to group some of my targets for my Visual Studio users and I am >> using the following code: >> >> # >> add_executable(StructArrayTest ${DREAM3DTest_SOURCE_DIR}/

Re: [CMake] Target Properties FOLDER not working?

2013-05-30 Thread John Drescher
On Thu, May 30, 2013 at 1:53 PM, Michael Jackson wrote: > I am trying to group some of my targets for my Visual Studio users and I am > using the following code: > > # > add_executable(StructArrayTest ${DREAM3DTest_SOURCE_DIR}/StructArrayTest.cpp) > target_link_libraries(StructArrayTest

[CMake] Target Properties FOLDER not working?

2013-05-30 Thread Michael Jackson
I am trying to group some of my targets for my Visual Studio users and I am using the following code: # add_executable(StructArrayTest ${DREAM3DTest_SOURCE_DIR}/StructArrayTest.cpp) target_link_libraries(StructArrayTest EbsdLib MXA DREAM3DLib) SET_TARGET_PROPERTIES (StructArrayTest PROPE

Re: [CMake] write file if different?

2013-05-30 Thread Matthew Woehlke
On 2013-05-30 12:11, j s wrote: On Wed, May 29, 2013 at 11:14 PM, them...@gmail.com wrote: "j s" wrote: On 28.05.2013 22:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does F

Re: [CMake] MacOS bundle using MACOS_PACKAGE_LOCATION with XCode - files not copied

2013-05-30 Thread Pierre Aufrère
On 30 mai 2013, at 05:37, clin...@elemtech.com wrote: > > > - Original Message - >> Hello, >> >> I'm using cmake to generate an Xcode project which is supposed to build a >> bundle. Thus, I use the source file property MACOSX_PACKAGE_LOCATION to >> place my data (database, GUI, localiza

Re: [CMake] write file if different?

2013-05-30 Thread J Decker
Rsync would be no different than writing the file and using copy_if_different; it would still be two steps, but require additional things to be installed on linux and windows systems. Same with python/perl/bash as appropriate. If you're using those other things you should just use configure so wi

Re: [CMake] CMake unable to detect Qt

2013-05-30 Thread Matthew Woehlke
On 2013-05-24 00:31, Gargi Das wrote: I am trying to build pyside and for that i need to build CMake for RHEL 5 machine, i follow the procedure mentioned in Readme.txt which is very straight forward. First i run the command: ./bootstrap --prefix=some path this operation generates lots of .o

Re: [CMake] write file if different?

2013-05-30 Thread j s
You are entitled to your opinion, but there are several system utilities that are available by default on many systems, including rsync. rsync has a well known interface, and is available by default on Linux and Mac OS X. The way CMake does things is often kludgy and just feels wrong. I often wr

Re: [CMake] Running "install" by default, or alternatives?

2013-05-30 Thread Paul Smith
On Thu, 2013-05-30 at 08:10 +0200, Petr Kmoch wrote: > Look up "generator expressions" in the CMake docs (for example in > "add_custom_command"), particularly $. It might help in > solving your issue. Perfect! Thanks. -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Need help with ExternalProject_Add file dependencies

2013-05-30 Thread Alan W. Irwin
On 2013-05-30 02:22-0700 Alan W. Irwin wrote: Why do two build steps (6 and 7) have to be done to satisfy the file depends after the touch? I must be doing something wrong with the file depends above, but I cannot see what it is. Actually, this bad behaviour was due to a long-standing (at lea

[CMake] Need help with ExternalProject_Add file dependencies

2013-05-30 Thread Alan W. Irwin
I would like to add a build system (Copy a single CMakeLists.txt file to the unpacked source tree) to an external project build with a proper file dependency on the source CMakeLists.txt file so if that file is changed (or touched) a complete rebuild occurs. Here is how I am attempting to do this