Re: [CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Mathieu Malaterre
On Feb 11, 2008 6:45 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Alexander Neundorf wrote: > > On Monday 11 February 2008, Mathieu Malaterre wrote: > >> Hi there, > >> > >> I would like to know if anyone has written a ADD_COMPILE_TEST macro > >> for cmake. Basically I would like to check that s

RE: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Malhotra, Anupam
Hi I am using GET_TARGET_PROPERTY(vpcl_path vpcl LOCATION) This command returns the vpcl_path as C:/NIGHTLY_BUILD_IMPROVED_TESTING/Visual Studio 6Debug/output/$(IntDir)/vpcl.lib The $(IntDir) variable must be some CMake specific variable. Instead of the path returned from GET_TARGET_PROPERTY,

Re: [CMake] CMake book

2008-02-11 Thread Eric Noulard
2008/2/6, Michael Wild <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all > > I wanted to ask whether the new CMake book will be available on Amazon > or some other (preferably european) retailer. The problem is that if I > buy it through the Yahoo shop, shipping to S

Re: [CMake] Wee question about CMake developer etiquette

2008-02-11 Thread Alexander Neundorf
On Monday 11 February 2008, KHMan wrote: ... > As it is, I have tried to look for a list of key developers, but > since the project is identified more with the company, I was > unable to find a list of key developers easily. I looked at the > website and tarball, but didn't manage to get a clear an

Re: [CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Bill Hoffman
Alexander Neundorf wrote: On Monday 11 February 2008, Mathieu Malaterre wrote: Hi there, I would like to know if anyone has written a ADD_COMPILE_TEST macro for cmake. Basically I would like to check that some template instantiation should not compile, while other should. I tried quickly doin

[CMake] ctest & ctrl-c

2008-02-11 Thread clinton
When running ctest, and I hit ctrl-c to stop it, is it supposed to kill the application being run by ctest? On Windows, I'm stale apps that I have to kill with the task manager that ctest didn't kill. Clint ___ CMake mailing list CMake@cmake.org http

Re: [CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Alexander Neundorf
On Monday 11 February 2008, Mathieu Malaterre wrote: > Hi there, > > I would like to know if anyone has written a ADD_COMPILE_TEST macro > for cmake. Basically I would like to check that some template > instantiation should not compile, while other should. I tried quickly > doing cmake -P + TRY_C

Re: [CMake] Qt 4.4 Phonon and WebKit

2008-02-11 Thread clinton
On Monday 11 February 2008 8:53:34 am StefanV wrote: > Hello List, > I've started using cmake some days ago to build a cpp-app using Qt4.4 > Technology Preview 1 on my Debian Sid host. I need to link against the > new Phonon-Lib, so I extended the standard CMake 2.4.8 Modules to be > able to link a

[CMake] Qt 4.4 Phonon and WebKit

2008-02-11 Thread StefanV
Hello List, I've started using cmake some days ago to build a cpp-app using Qt4.4 Technology Preview 1 on my Debian Sid host. I need to link against the new Phonon-Lib, so I extended the standard CMake 2.4.8 Modules to be able to link against the lib. I only tested Phonon, whose name may change in

Re: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Brandon Van Every
On Feb 8, 2008 6:35 AM, Sylvain Benner <[EMAIL PROTECTED]> wrote: > > > > > SET(CMAKE_COMMAND "copy \"${vpcl_path}\" \"${PROJECT_SOURCE_DIR}\"") > > > > ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND ${CMAKE_COMMAND} > > VERBATIM) > > > I think you have forgot the ARGS argument ARGS is old scho

Re: AW: [CMake] "Treat wchar as built-in type" in Cmake ?

2008-02-11 Thread Stephen Collyer
Gerhard Grimm wrote: > Hi Stephen, > > there are two ways to have this compiler flag added in a non-global fashion: > > - You can add it to specific targets using > > set_target_properties(mytarget1 mytarget2 ... > PROPERTIES COMPILE_FLAGS "/Zc:wchar_t-") This works fi

RE: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Micha Renner
In general, this code-fragment works: SET(_srcDir1 /${vpcl_path}) SET(_destination /${PROJECT_SOURCE_DIR}}) IF (MSVC) SET(command xcopy) SET(_parameter "/Y/I") ELSE(MSVC) set(command cp) ENDIF(MSVC) ADD_CUSTOM_TARGET(myTarget ALL DEPENDS ${_srcDir1}) FILE(TO_NATI

Re: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Sylvain Benner
What's the value of $(IntDir) ? Have you already tried this : $(IntDir)/vpcl.lib instead of C:/NIGHTLY_BUILD_IMPROVED_TESTING/Visual Studio 6Debug/output/$(IntDir)/vpcl.lib? ? And in your path the directory "Visual Studio 6Debug" is right ? --Sylvain

RE: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Malhotra, Anupam
Tried that also...still not working!!..:(...any other clue? Thanks and Regards Anupam Malhotra -Original Message- From: Sylvain Benner [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 5:05 PM To: Malhotra, Anupam Cc: cmake@cmake.org Subject: Re: [CMake] Problem in ADD_CUSTOM_CO

Re: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Sylvain Benner
And using xcopy instead of copy ? --Sylvain ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

RE: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Malhotra, Anupam
I tried this command. Now it is not giving any error but the file is not actually copied. I printed the value of vpcl_path. It is showing that as: C:/NIGHTLY_BUILD_IMPROVED_TESTING/Visual Studio 6Debug/output/$(IntDir)/vpcl.lib Please advice. Thanks in advance. Thanks and Regards Anupam Malhotra

Re: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Sylvain Benner
I missed the additional quotes, the correct command is : ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND copy "\"${vpcl_path}\"" "\"${PROJECT_SOURCE_DIR}\"" VERBATIM) This is a common rule in CMake script, when you want to pass an argument, always use quotes to be sure it will not be split

Re: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-11 Thread Sylvain Benner
Hi, ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND copy ARGS "\"${vpcl_path}\"" "\"${PROJECT_SOURCE_DIR}\"" VERBATIM) And also ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND copy ARGS "${vpcl_path}" "${PROJECT_SOURCE_DIR}" VERBATIM) Can you developp the command, what's the val

Re: [CMake] converting VS projects to CMake

2008-02-11 Thread Sylvain Benner
Brandon Van Every a écrit : CMake's Killer App would be a build conversion evaluator that gives hope to the project, and incrementally leads to a full translation. That is the vision. Do you want to help with that or do you want to leave me to figure it out? If I had time to help, sure I

[CMake] ctest scripts with svn

2008-02-11 Thread Jan Wurster
Hi everybody, I'm trying to get a ctest (from cmake-2.4.8 release) script to run with our svn repository and am hitting some obstacles in the way ;) To begin with, I can't get the generated DartConfiguration.tcl to contain an SVNCommand definition. I do set CTEST_SVN_COMMAND and let ctest ins

[CMake] ADD_COMPILE_TEST macro

2008-02-11 Thread Mathieu Malaterre
Hi there, I would like to know if anyone has written a ADD_COMPILE_TEST macro for cmake. Basically I would like to check that some template instantiation should not compile, while other should. I tried quickly doing cmake -P + TRY_COMPILE but I am getting an error : Command TRY_COMPILE not s

AW: [CMake] "Treat wchar as built-in type" in Cmake ?

2008-02-11 Thread Gerhard Grimm
Hi Stephen, there are two ways to have this compiler flag added in a non-global fashion: - You can add it to specific targets using set_target_properties(mytarget1 mytarget2 ... PROPERTIES COMPILE_FLAGS "/Zc:wchar_t-") - You can add it to specific source files using