Re: [CMake] CMAKE changing Visual Studio Settings

2014-07-30 Thread Eric Clark
No problem at all Joseph! I am glad to hear that you got it working! Thanks - Eric From: anoneiron...@gmail.com [mailto:anoneiron...@gmail.com] On Behalf Of Joseph Rosensweig Sent: Wednesday, July 30, 2014 2:42 PM To: Eric Clark Cc: John Drescher; CMake ML Subject: Re: [CMake] CMAKE changing

[CMake] file INSTALL cannot set modification time on...

2014-07-29 Thread Eric Clark
Hello All, I have had this problem with CMake for quite some time now. I have posted the question to this message board once before, but did not figure out a solution. Whenever I try to run cmake on a cmake_install.cmake file with all of the appropriate defines set, I always get at least one

Re: [CMake] CMAKE changing Visual Studio Settings

2014-07-22 Thread Eric Clark
-Original Message- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of John Drescher Sent: Monday, July 21, 2014 3:55 PM To: Joseph Rosensweig Cc: CMake ML Subject: Re: [CMake] CMAKE changing Visual Studio Settings So CMAKE can't control the options int he *.user files I

[CMake] file INSTALL cannot set modification time on

2014-05-01 Thread Eric Clark
Hello, I have a few Visual Studio projects that I set a post-build event in Visual Studio to copy the DLLs, LIBs and a few other files up into a directory used for development. I do this by running the following custom command: add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND

Re: [CMake] file INSTALL cannot set modification time on

2014-05-01 Thread Eric Clark
of that project or something because I have already checked that dependencies are all correct. Thanks, Eric From: Nils Gladitz [mailto:nilsglad...@gmail.com] Sent: Thursday, May 01, 2014 11:52 AM To: Eric Clark; cmake@cmake.org Subject: Re: [CMake] file INSTALL cannot set modification time

Re: [CMake] file INSTALL cannot set modification time on

2014-05-01 Thread Eric Clark
. This particular file is only a dependency of the project that just finished building prior to the post build step and it is not built by the solution, it is only copied over. Eric From: Nils Gladitz [mailto:nilsglad...@gmail.com] Sent: Thursday, May 01, 2014 12:04 PM To: Eric Clark; cmake@cmake.org Subject

Re: [CMake] file INSTALL cannot set modification time on

2014-05-01 Thread Eric Clark
I turned off all virus and spam software and that did not do it either. I am lost here, I have no idea what to do anymore. Any help from anyone would be greatly appreciated! Thanks, Eric From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Eric Clark Sent: Thursday, May 01, 2014 12:07 PM

Re: [CMake] nested replacement with @@

2013-04-10 Thread Eric Clark
Nico, I had this same problem at one point in time, but was able to change it to the ${...} syntax which works beautifully. I know that you cannot use this syntax, but I will tell you that I did find a work-around for the nested @...@ syntax. The workaround is to run configure_file on the file

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
Hello, First off, you cannot call both add_executable and add_library in the same CMakeLists file. Here is what I can say about your other questions: 1. All commands that require a target have to come after you have created the target via add_executable or add_library. This is simply

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Rolf Eike Beer Sent: Monday, October 22, 2012 12:11 PM To: cmake@cmake.org Subject: Re: [CMake] cmake trouble Eric Clark wrote: Hello, First off, you cannot call both

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
thing, I was only trying to help... Eric -Original Message- From: Andreas Pakulat [mailto:ap...@gmx.de] Sent: Monday, October 22, 2012 12:17 PM To: Eric Clark Cc: 张峰; cmake@cmake.org Subject: Re: [CMake] cmake trouble Hi, On Mon, Oct 22, 2012 at 6:04 PM, Eric Clark ecl...@ara.com

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
-Original Message- From: Andreas Pakulat [mailto:ap...@gmx.de] Sent: Monday, October 22, 2012 12:17 PM To: Eric Clark Cc: 张峰; cmake@cmake.org Subject: Re: [CMake] cmake trouble Hi, On Mon, Oct 22, 2012 at 6:04 PM, Eric Clark ecl...@ara.com wrote: First off, you cannot call

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Rolf Eike Beer Sent: Monday, October 22, 2012 12:48 PM To: cmake@cmake.org Subject: Re: [CMake] cmake trouble Eric Clark wrote: From: Andreas Pakulat [mailto:ap...@gmx.de] On Mon, Oct

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Rolf Eike Beer Sent: Monday, October 22, 2012 12:51 PM To: cmake@cmake.org Subject: Re: [CMake] cmake trouble Eric Clark wrote: -Original Message- From: cmake-boun

Re: [CMake] CMake-based build systems that are useful for study purposes?

2012-10-22 Thread Eric Clark
missing the purpose of the project() command all together? Thanks, Eric -Original Message- From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] Sent: Monday, October 22, 2012 1:58 PM To: Eric Clark Cc: Rolf Eike Beer; cmake@cmake.org Subject: CMake-based build systems that are useful

Re: [CMake] help with cmake_parse_arguments

2012-10-19 Thread Eric Clark
John, The cmake_parse_arguments command takes 5 arguments, not 4. My guess is that you just need to get the arguments right and things should then work for you assuming the rest of your code is correct. If you look in CMakeParseArguments.cmake you should see the documentation for the command,

Re: [CMake] help with cmake_parse_arguments

2012-10-19 Thread Eric Clark
Clark Cc: CMake Mailing List (cmake@cmake.org) Subject: RE: help with cmake_parse_arguments Eric Thanks for pointing that out, the help docs I was looking at didn't mention multi_value_keywords, with that added it works as expected. Cheers JB From: Eric Clark [mailto:ecl...@ara.com] Sent: 19

[CMake] set_target_properties called twice

2012-10-16 Thread Eric Clark
Hello, I am currently having trouble with set_target_properties(...). I am trying to call it twice to set two different values for the same property. The first call I make looks like this: set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS /ENTRY:mainCRTStartup) Then, I call it

Re: [CMake] set_target_properties called twice

2012-10-16 Thread Eric Clark
. Is there something I am doing wrong here? By the way, I tried both APPEND and APPEND_STRING, the only difference is the semi-colon goes away with APPEND_STRING. Thanks, Eric From: Miller, Frank [mailto:fmil...@sjm.com] Sent: Tuesday, October 16, 2012 2:58 PM To: Eric Clark; CMake Mailing List (cmake

Re: [CMake] set_target_properties called twice

2012-10-16 Thread Eric Clark
] Sent: Tuesday, October 16, 2012 3:25 PM To: Eric Clark Cc: CMake Mailing List (cmake@cmake.org) Subject: Re: [CMake] set_target_properties called twice Try APPEND_STRING with a leading space in the string... On Tue, Oct 16, 2012 at 4:19 PM, Eric Clark ecl...@ara.com wrote: Frank

[CMake] How to get current user?

2012-10-08 Thread Eric Clark
Hello All, Can anyone tell me if there is a variable or command that will return me the name of the current user? Thank You, Eric Clark - Code Magician 850.678.5222 ecl...@ara.commailto:ecl...@ara.com To be fond of something is better than merely to know it, and to find joy in it is better

Re: [CMake] How to get current user?

2012-10-08 Thread Eric Clark
Thank you Nils! I actually just figured out that I would have to use the environment variables and they work just fine... I was just wondering if CMake had a variable for it or not... Eric From: Nils Gladitz [mailto:glad...@sci-vis.de] Sent: Monday, October 08, 2012 11:40 AM To: Eric Clark Cc

[CMake] Last CMake run date and time

2012-09-26 Thread Eric Clark
Hello All, I would like to perform an operation only when a file has changed since the last time CMake was ran. Can anyone tell me if there is a CMake variable that is already available that stores the date and time of the last time CMake was ran? Thank You, Eric Clark To be fond

[CMake] CMake cache breaks when storing multi-line variables...

2012-09-14 Thread Eric Clark
Hello All, Does anyone know of a workaround (besides not caching the variable) to caching a variable that has multiple lines of text in it? It seems as though the CMake cache does not support the use of multi-line variables in it, is this true? Is there no workaround for this other than to

[CMake] Nested @VARs in configure_file

2012-09-14 Thread Eric Clark
Hello All, Does anyone know offhand if it is possible to nest @VAR@s? For example, can I do something like this: @@PROJECT_NAME@_VERSION_MAJOR@ What I would like for this to do is to first replace @PROJECT_NAME@ with the name of the project, something like Foo for instance. Then the second

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread Eric Clark
I do this all the time in my config files and I have found that best way to do it is to do this: if(NOT ENV{FOO_HOME}) message(FATAL_ERROR Could not find FOO_HOME environment variable) endif(NOT ENV{FOO_HOME})) One thing to note is that if the environment variable points to a path on the