[CMake] ExternalProject_Add always try to connect to SVN server

2014-09-13 Thread Anton Deguet
Hello, I'm wondering if I'm doing something wrong using ExternalProject_Add for a subversion repository. I would expect the following behavior: - First run, see if local copy of code has been checked out. If not 'svn checkout'. Fails if not connected to internet. - Consecutive runs: - if

[CMake] setting executable runtime command line argument

2012-10-01 Thread Anton Deguet
Hello, I am wondering if there is a target property for executable to set a command line argument. I did a bit of googling but I might have missed it. Something like: add_executable (myProgram main.cpp) set_target_properties (myProgram COMMAND_LINE_ARGUMENTS --verbose --run) This would set

[CMake] Second post: find_package with config file always set xyz_FOUND to true?

2011-09-19 Thread Anton Deguet
Hello, I haven't heard anything following my previous post. Is there any chance someone could provide some guidance? Sincerely, Anton On Aug 29, 2011, at 6:02 PM, Anton Deguet wrote: Hello, I am trying to use the following syntax: find_package (xyz REQUIRED xyz1 xyz2) using a config

Re: [CMake] Second post: find_package with config file always set xyz_FOUND to true?

2011-09-19 Thread Anton Deguet
been set, let it as is. That would allow me to keep using xyz_FOUND incorrectly :-) Again, thank you for your answer. Anton On Sep 19, 2011, at 2:21 PM, Michael Hertling wrote: On 09/19/2011 07:09 PM, Anton Deguet wrote: Hello, I haven't heard anything following my previous post

[CMake] find_package with config file always set xyz_FOUND to true?

2011-08-29 Thread Anton Deguet
Hello, I am trying to use the following syntax: find_package (xyz REQUIRED xyz1 xyz2) using a config file, i.e. NOT Findxyz.cmake. I have a file named xyz-config.cmake that contains some code to check if the required components are available or not (based on how xyz was compiled). Ideally I

[CMake] option, configure_file and ON/OFF

2010-11-23 Thread Anton Deguet
) and in the config.h.in do: #define MYLIB_HAS_WHATEVER ${MYLIB_CONFIG_HAS_WHATEVER} Is there a better way? Anton --- Anton Deguet, Research Engineer, ERC-CISST/LCSR, Johns Hopkins University e-mail: anton.deg...@jhu.edu, iChat: anton.deg...@mac.com phone: 410-790-0456 JHU, LCSR, Hackerman Hall 137b, 3400

[CMake] How to figure out when a feature was added

2010-02-17 Thread Anton Deguet
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.x). Is there an online list of feature/date of introduction or a way to access all release notes? Anton --- Anton Deguet, Research Engineer, ERC-CISST/LCSR, Johns Hopkins University e-mail: anton.deg...@jhu.edu, iChat: anton.deg...@mac.com office phone: 410-516-5261, cell phone

[CMake] Tips to create a UseXYZ.cmake

2010-01-28 Thread Anton Deguet
, Anton --- Anton Deguet, Research Engineer, ERC-CISST/LCSR, Johns Hopkins University e-mail: anton.deg...@jhu.edu, iChat: anton.deg...@mac.com office phone: 410-516-5261, cell phone: 410-790-0456 JHU, LCSR, CSEB 137b, 3400 North Charles Street, Baltimore, MD 21218, USA

[CMake] Removing an option created with OPTION?

2007-09-07 Thread Anton Deguet
created with the cmake command OPTION still appears. That make sense as this variables are still in the cache. Is there any way to remove these options automatically and un-clutter the cmake UI (using ccmake or cmakesetup)? Thanks, Anton --- Anton Deguet, Research Engineer, ERC-CISST, Johns

Re: [CMake] Add a .obj file to a library

2007-03-13 Thread Anton Deguet
a relative path between two drives on Windows. I there a way to tag a source file as defined with absolute path? Anton On Mar 9, 2007, at 12:15 PM, Anton Deguet wrote: Hello, I am trying to add a pre-compiled object in a library. I am generating a solution for Microsoft Visual Studio .net

[CMake] Add a .obj file to a library

2007-03-09 Thread Anton Deguet
. Is there an easy way to tell CMake to not prepend the current source path? Also, all examples found on the web referred to .o files but not .obj files. I am pretty sure that CMake can handle this difference but I just wanted verify. Thanks, Anton --- Anton Deguet, Research Engineer, ERC-CISST

Re: [CMake] FindCppUnit

2006-10-05 Thread Anton Deguet
___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake -- Anton Deguet [EMAIL PROTECTED] ERC CISST Johns Hopkins University ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman

Re: [CMake] How to read a registry key?

2006-09-07 Thread Anton Deguet
of different computers/users in the lab and the user path can be either one which makes it difficult to implement a robust solution. Am I the first one to run into this issue? Anton On Thu, 2006-09-07 at 12:13 -0400, Anton Deguet wrote: Bill, I had some success with the key expansion but I

[CMake] How to read a registry key?

2006-09-06 Thread Anton Deguet
Hello, I have found that using EXEC_PROGRAM with ${CMAKE_COMMAND} -E I can write/remove a key in the Windows registry but I haven't figured out how to read a key. Is there a simple solution for that? Anton -- Anton Deguet [EMAIL PROTECTED] ERC CISST Johns Hopkins University

Re: [CMake] CTest and devenv command line issues

2006-08-08 Thread Anton Deguet
... Any thoughts? Anton On Tue, 2006-07-25 at 16:00 -0400, Brad King wrote: Anton Deguet wrote: Hello, I am trying to setup a couple of nightly builds on a single Windows box. Since the build requires DLLs (to test our __declspec and Python wrappers), I have been trying to use the MSVC

[CMake] CTest and devenv command line issues

2006-07-25 Thread Anton Deguet
won't work: devenv /useenv /build Release /project Nightly C:\Program Files\CMake 2.4\bin\ctest.exe -C Release -D Nightly The error message is that the DLLs are not found. I looks like at one point my environment variables have been dropped. Any clue? I am using CMake 2.4.2. Anton -- Anton

Re: [CMake] Fwd: CMAKE + SWIG + more wrapped languages

2006-07-24 Thread ANTON DEGUET
Daniel, I figured out a solution which is more a trick than anything else. Basically, I created an empty .i file as a stub for each language. For example, you have Module.i and you could add ModulePython.i which contains: %include Module.i. I then use CMake with these stubs. This works but