[CMake] Include source files on a per-configuration basis

2011-10-05 Thread Robert Dailey
this? I need something similar to the `debug` and `optimized` keywords that are accepted by the `target_link_libraries()` CMake operation. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

[CMake] STREQUAL not functioning?

2011-10-06 Thread Robert Dailey
() Any reason why this isn't working as documented? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Robert Dailey
Well there you go, deleting the cache reconfiguring fixed it. That was weird. Thanks for the help! - Robert Dailey On Thu, Oct 6, 2011 at 1:50 PM, Robert Dailey rcdai...@gmail.com wrote: Ok interesting, it is working for me too. I guess my reproducible use case was invalid. (BTW

[CMake] Target-specific include directories?

2011-10-06 Thread Robert Dailey
-in functionality for this kind of behavior or if there is a different implementation I could use. Can anyone help me out? Thanks in advance. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

[CMake] Source file specific properties

2011-10-09 Thread Robert Dailey
to all' so I am explicitly included in your reply, as I have mail delivery turned off for the mailing list. Thank you! - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

[CMake] Question about variables, cache, and scope

2011-10-10 Thread Robert Dailey
of my function, I do this: function( define_project ... ) math( EXPR count ${project_count}+1 ) set( project_count ${count} ) endfunction() However, 'project_count' is always 0 each time that the function is executed. How can I make this work? - Robert Dailey -- Powered

Re: [CMake] Question about variables, cache, and scope

2011-10-10 Thread Robert Dailey
${new_count} CACHE INTERNAL FORCE ) Thanks! - Robert Dailey On Mon, Oct 10, 2011 at 2:01 PM, Glenn Coombs glenn.coo...@gmail.comwrote: Calling a function pushs a new variable scope. All variables visible in the callers scope are copied into the new scope but changes by default only affect

[CMake] install() question

2011-10-13 Thread Robert Dailey
. Any idea if install() can do this? I'm not really sure of the purpose for install(), so maybe I'm approaching this wrong. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] Question about variables, cache, and scope

2011-10-13 Thread Robert Dailey
This works: set( project_count 0 CACHE INTERNAL ) function( define_project ) math( EXPR count ${project_count}+1 ) set( project_count ${count} CACHE INTERNAL ) endfunction() define_project() message(${project_count}) define_project() message(${project_count}) define_project()

Re: [CMake] Include source files on a per-configuration basis

2011-10-13 Thread Robert Dailey
it accordingly - Robert Dailey On Wed, Oct 5, 2011 at 3:47 PM, Robert Dailey rcdai...@gmail.com wrote: In my particular CMake project, I have three CPP files: a.cpp b.cpp c.cpp I want 'a.cpp' to be compiled in all configurations (release debug).br I only want 'b.cpp

Re: [CMake] Include source files on a per-configuration basis

2011-10-13 Thread Robert Dailey
On Thu, Oct 13, 2011 at 3:16 PM, David Cole david.c...@kitware.com wrote: On Thu, Oct 13, 2011 at 3:37 PM, Robert Dailey rcdai...@gmail.com wrote: In visual studio, there is a way to exclude a source file from the build on a per-configuration basis (debug vs release). The actual VCPROJ

Re: [CMake] install() question

2011-10-13 Thread Robert Dailey
On Thu, Oct 13, 2011 at 3:47 PM, Michael Hertling mhertl...@online.dewrote: You might use an installation component for the concerned headers: CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT(INSTCOMP C) SET(CMAKE_VERBOSE_MAKEFILE ON) SET(F_PREFIX /dev/shm CACHE PATH ) FILE(WRITE

Re: [CMake] install() question

2011-10-14 Thread Robert Dailey
On Fri, Oct 14, 2011 at 11:22 AM, Hendrik Sattler p...@hendrik-sattler.dewrote: Yes. Compilation of a project should always be possible without polluting the system. For other programs or libraries in the same source tree, install() is not the right thing. You have several options: a)

[CMake] Transitively including dependency source directories

2011-10-14 Thread Robert Dailey
know how to get to that target's header files. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

[CMake] Problem with CMAKE_CFG_INTDIR

2011-10-16 Thread Robert Dailey
? How can I get the $(IntDir) path instead? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow

[CMake] CMake MFC

2011-10-18 Thread Robert Dailey
? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http

[CMake] CMAKE_MFC_FLAG not working in functions

2011-10-19 Thread Robert Dailey
compatible project transparent to the lower level CMakeLists scripts. Hiding away the flag and how it needs to be set is a big part of this, but I can't do it. Anyone know how I can make this work? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] CMAKE_MFC_FLAG not working in functions

2011-10-20 Thread Robert Dailey
On Thu, Oct 20, 2011 at 2:36 AM, Rolf Eike Beer e...@sf-mail.de wrote: I have a function defined very high up in the directory tree at the root CMakeLists file. Several levels below it, I have another CMakeLists file that I call that function from. The function sets CMAKE_MFC_FLAG to 2.

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
at my system include/library paths in Tools Options in Visual Studio 2003, I find nothing strange. Please help guys, I really need a quick solution!! I appreciate in advance any help! On Tue, Oct 18, 2011 at 3:10 PM, Robert Dailey rcdai...@gmail.com wrote: I've enabled MFC by setting

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
I just tried with VS2008 and I get the same: fatal error LNK1104: cannot open file 'mfc40.lib' Also I created a default MFC application using the new project wizard in VS2008 and it compiled linked just fine, so it seems like maybe this is a CMake issue? - Robert Dailey On Thu

Re: [CMake] CMAKE_MFC_FLAG not working in functions

2011-10-20 Thread Robert Dailey
I'm generating for VS2003 in this case. Also with the searching I did I was not able to find an existing bug report related to this issue. - Robert Dailey On Thu, Oct 20, 2011 at 10:43 AM, David Cole david.c...@kitware.com wrote: Are you using VS10? Is it this already known problem

Re: [CMake] CMAKE_MFC_FLAG not working in functions

2011-10-20 Thread Robert Dailey
Let me ask this, What would be the parent of a function located in the root CMakeLists file but called from a subordinate CMakeLists file? - Robert Dailey On Thu, Oct 20, 2011 at 11:55 AM, Michael Wild them...@gmail.com wrote: On 10/20/2011 05:41 PM, Robert Dailey wrote: On Thu

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
I did this and it links just fine... hmmm. Let me grep my source tree for mfc4 and see what I get. I really am running out of ideas, I don't know what else to look for. - Robert Dailey On Thu, Oct 20, 2011 at 11:46 AM, Bill Hoffman bill.hoff...@kitware.comwrote: On 10/20/2011 12:35 PM

Re: [CMake] CMAKE_MFC_FLAG not working in functions

2011-10-20 Thread Robert Dailey
On Thu, Oct 20, 2011 at 12:56 PM, Michael Hertling mhertl...@online.dewrote: On 10/20/2011 06:59 PM, Robert Dailey wrote: Let me ask this, What would be the parent of a function located in the root CMakeLists file but called from a subordinate CMakeLists file? It's the subordinate

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
there. Once I open the generated VS2008 solution, is there anything in project settings I can look at to maybe see something suspicious? Just let me know what I need to do and Ill post the information you need. Thanks in advance... - Robert Dailey On Thu, Oct 20, 2011 at 12:01 PM, Robert

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
WINNT5.0_DBG.OBJ/uploadlog.pdb WINNT5.0_DBG.OBJ/uploadlog.map WINNT5.0_DBG.OBJ/uploadlog.pdb WINNT5.0_DBG.OBJ/uploadlog.map ../../../work/B1/WINNT5.0_DBG.OBJ/bin - Robert Dailey On Thu, Oct 20, 2011 at 2:04 PM, Robert Dailey rcdai...@gmail.com wrote: I grepped everything possible, I found

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
Those quotes do look suspicious but for some reason they work just fine in Cygwin. Basically I load vsvars32.bat into my cygwin environment, and I have modified the paths in that batch file to the short path format since our makefile build scripts do not play friendly with spaces in the file

Re: [CMake] CMAKE_MFC_FLAG not working in functions

2011-10-20 Thread Robert Dailey
the real parent scope is? Maybe it's not what I think it is. - Robert Dailey On Thu, Oct 20, 2011 at 3:42 PM, Michael Hertling mhertl...@online.dewrote: On 10/20/2011 08:44 PM, Robert Dailey wrote: On Thu, Oct 20, 2011 at 12:56 PM, Michael Hertling mhertl...@online.de wrote: On 10

Re: [CMake] CMAKE_MFC_FLAG not working in functions

2011-10-20 Thread Robert Dailey
There isn't any way to do a trace from cmake gui is there? Maybe that's a separate feature request on its own :P I'll check out the trace and follow up with results. - Robert Dailey On Thu, Oct 20, 2011 at 4:16 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 10/20/2011 5:11 PM

Re: [CMake] CMAKE_MFC_FLAG not working in functions

2011-10-20 Thread Robert Dailey
AFTER this one (in the same directory CMakeLists.txt script) that DO NOT use MFC, I didn't want them to be affected by the flag. I'd still like to do this but it's no big deal. Removing the bottom 'set' fixed it. - Robert Dailey On Thu, Oct 20, 2011 at 4:44 PM, Robert Dailey rcdai

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
class, dialog classes, etc) were removed, the remaining CPP files linked gave me this: LNK1104: cannot open file 'libc.lib' Now this is just confusing. What is this lib and why can't it find it? - Robert Dailey On Thu, Oct 20, 2011 at 3:38 PM, Robert Dailey rcdai...@gmail.com wrote: Those

Re: [CMake] CMake MFC

2011-10-20 Thread Robert Dailey
- means, but looks like maybe it is pulling that lib out from this lib? I don't know how that works but it's very sneaky... any idea what these command-line arguments are doing in a debug LIB file??? - Robert Dailey On Thu, Oct 20, 2011 at 6:52 PM, Robert Dailey rcdai...@gmail.com wrote: More

[CMake] Custom target with just cmake files in it

2011-10-21 Thread Robert Dailey
I create such a project? It needs to show up in ANY solution opened that is generated at any level via call to project(). - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

[CMake] Precompiled header support in Visual Studio?

2011-10-21 Thread Robert Dailey
} PROPERTIES COMPILE_FLAGS /Yu\${PrecompiledBinary}\ /FI\${PrecompiledBinary}\ /Fp\${PrecompiledBinary}\ OBJECT_DEPENDS ${PrecompiledBinary}) ENDIF(MSVC) endmacro() - Robert Dailey -- Powered by www.kitware.com Visit

[CMake] Solution directory support

2011-10-24 Thread Robert Dailey
now, after tests I would have over 300 projects. I need to be able to stuff the 180 test projects in a solution directory to keep them out of the way) - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread Robert Dailey
Bumping this in hopes for some help! - Robert Dailey On Fri, Oct 21, 2011 at 3:11 PM, Robert Dailey rcdai...@gmail.com wrote: I did some searching and on stackoverflow I found a post that had code in it to provide precompiled header support: http://stackoverflow.com/questions

Re: [CMake] Custom target with just cmake files in it

2011-10-25 Thread Robert Dailey
Bumping this too since I'd like an answer! :P - Robert Dailey On Fri, Oct 21, 2011 at 3:08 PM, Robert Dailey rcdai...@gmail.com wrote: I have a folder with a bunch of cmake modules in it that contain my custom CMake code used across all projects. I only generate for visual studio

Re: [CMake] Custom target with just cmake files in it

2011-10-25 Thread Robert Dailey
On Tue, Oct 25, 2011 at 10:50 AM, David Cole david.c...@kitware.com wrote: On Fri, Oct 21, 2011 at 4:08 PM, Robert Dailey rcdai...@gmail.com wrote: I have a folder with a bunch of cmake modules in it that contain my custom CMake code used across all projects. I only generate for visual

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread Robert Dailey
list of sources, which set /Yu on it, overwriting the /Yc that was placed on it. Thanks for the helpful reminders! - Robert Dailey On Tue, Oct 25, 2011 at 11:03 AM, John Drescher dresche...@gmail.comwrote: On Tue, Oct 25, 2011 at 12:01 PM, John Drescher dresche...@gmail.com wrote

[CMake] Windows installer creating duplicate entries in Add/Remove Programs

2011-10-25 Thread Robert Dailey
I noticed that when I install CMake 2.8 updates, I get duplicate entries in Programs and Features in windows 7 (the Add/Remove programs area). This seems like a bug. I searched the bug database but didn't find anything on this. Can anyone confirm? - Robert Dailey -- Powered

Re: [CMake] cdt4 generator and adding new source files from inside eclipse

2011-10-26 Thread Robert Dailey
On Wed, Oct 26, 2011 at 4:42 PM, Dan Kegel d...@kegel.com wrote: I'm going over the checklist of whether cmake will meet the needs of my eclipse users, and their first question was what was the workflow for adding a new source file. I just tried the experiment of adding a .cpp file, adding

Re: [CMake] Windows installer creating duplicate entries in Add/Remove Programs

2011-10-27 Thread Robert Dailey
*cricket... cricket...* - Robert Dailey On Tue, Oct 25, 2011 at 1:19 PM, Robert Dailey rcdai...@gmail.com wrote: I noticed that when I install CMake 2.8 updates, I get duplicate entries in Programs and Features in windows 7 (the Add/Remove programs area). This seems like a bug. I

Re: [CMake] Windows installer creating duplicate entries in Add/Remove Programs

2011-10-27 Thread Robert Dailey
On Thu, Oct 27, 2011 at 1:10 PM, Clinton Stimpson clin...@elemtech.comwrote: On Thursday, October 27, 2011 12:03:20 pm Robert Dailey wrote: *cricket... cricket...* - Robert Dailey On Tue, Oct 25, 2011 at 1:19 PM, Robert Dailey rcdai...@gmail.com wrote: I noticed that when

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-10-28 Thread Robert Dailey
will surely only add more duplicated entries. - Robert Dailey On Fri, Oct 21, 2011 at 11:19 AM, David Cole david.c...@kitware.com wrote: Hi all, *NO* replies requested. Different technique this time. Please edit the bug tracker directly. (Unless you have problems with the bug tracker

[CMake] Dependency question

2011-10-28 Thread Robert Dailey
project to depend on the DLL project so that in visual studio the DLL is built when I build the EXE (because of project dependencies), but I don't want the DLL 's import LIB to be linked in via command line. Any way to do this? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware

Re: [CMake] Dependency question

2011-10-28 Thread Robert Dailey
On Fri, Oct 28, 2011 at 12:25 PM, David Cole david.c...@kitware.com wrote: On Fri, Oct 28, 2011 at 1:06 PM, Robert Dailey rcdai...@gmail.com wrote: I'm using CMake 2.8.6 and generating for VS 2003. I have a DLL project that my EXE project needs to depend on, however I don't want my EXE

Re: [CMake] Dependency question

2011-10-28 Thread Robert Dailey
project do? - Robert Dailey On Fri, Oct 28, 2011 at 12:32 PM, Robert Dailey rcdai...@gmail.com wrote: On Fri, Oct 28, 2011 at 12:25 PM, David Cole david.c...@kitware.comwrote: On Fri, Oct 28, 2011 at 1:06 PM, Robert Dailey rcdai...@gmail.com wrote: I'm using CMake 2.8.6 and generating

[CMake] Suggestions on documenting my CMake modules

2011-10-29 Thread Robert Dailey
otherwise be immediately available in the code itself. Ideas? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki

[CMake] Need a full list of reserved words

2011-10-30 Thread Robert Dailey
just paste here? I can then send that on to the Notepad++ developers to get the list updated. Thanks! - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check

Re: [CMake] Need a full list of reserved words

2011-10-30 Thread Robert Dailey
need a list of all of these, across all commands. - Robert Dailey On Sun, Oct 30, 2011 at 2:23 PM, John Drescher dresche...@gmail.com wrote: On Sun, Oct 30, 2011 at 3:14 PM, Robert Dailey rcdai...@gmail.com wrote: I'm trying to help the Notepad++ author update his list of keywords

Re: [CMake] Source control bindings feature in CMake needs better documentation

2011-10-31 Thread Robert Dailey
the solution, every single project (about 120 of them) each prompt me for my username, workspace, and server URL to perforce server. Is there no way to specify this connection/user/workspace information in CMake so that when I open the solution it already knows this stuff? - Robert Dailey

[CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
SccAuxPath: VS_SCC_AUXPATH Can someone add support for this? Thanks. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org

Re: [CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
files outside of TortoiseSVN on Windows, so could someone explain how to create a patch file for these on Windows 7? Also how would you like me to deliver the code? I hope to see it introduced in version 2.8.7 Thanks. - Robert Dailey On Mon, Oct 31, 2011 at 4:10 PM, Robert Dailey rcdai

Re: [CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
I fiddled around with TortoiseGit and managed to create the patch. It is attached. Please integrate this into your repository so it is included in version 2.8.7 :) - Robert Dailey On Mon, Oct 31, 2011 at 5:41 PM, Robert Dailey rcdai...@gmail.com wrote: I have added source code

Re: [CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
/work/sandbox SccAuxPath=P4SCC#perforce.mycompany.com:3666##rdailey##rdailey-t510-sandbox SccProvider=MSSCCI:Perforce SCM When I open the generated solution, all projects load perfectly with no prompts and everything is binded to source control :) - Robert Dailey On Mon, Oct 31, 2011 at 7

Re: [CMake] SCC bindings missing AUXPATH support?

2011-11-01 Thread Robert Dailey
On Mon, Oct 31, 2011 at 11:59 PM, Steven Velez sbv1...@gmail.com wrote: Hi Robert, I reviewed the patch, and I am not sure vsAuxPath should be a requirement. As I stated earlier, we've gotten the binding to work acceptably without it and I assume others have as well. Further, some users

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-11-01 Thread Robert Dailey
I realize this is a feature but since I've provided the patch files that implement this (attached to the bug below) I was hoping you wouldn't mind. It's a small feature addition for source control bindings. Read more here: http://public.kitware.com/Bug/view.php?id=12549 - Robert Dailey

[CMake] MSVC variable doesn't work without project() call first

2011-11-01 Thread Robert Dailey
For some reason the built in variable like MSVC_VERSION and MSVC do not have any value unless the project() command is called first. Can someone explain why? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

[CMake] Joining Normalizing paths

2011-11-01 Thread Robert Dailey
Is any of this possible? How do I work around this? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

[CMake] How to force value to cache variable without retyping doc string?

2011-11-01 Thread Robert Dailey
the doc string? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe

[CMake] debug/optimized include directories

2011-11-01 Thread Robert Dailey
When generating for Visual Studio, is there a way to make projects in debug configuration have a different set of include directories from the release configuration? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

Re: [CMake] debug/optimized include directories

2011-11-01 Thread Robert Dailey
On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c...@kitware.com wrote: Not yet Meaning there are plans in the works to add such functionality in the near future? For now I guess I could actually hard code VS environment variables in my include directory strings, such as $(Configuration). --

Re: [CMake] debug/optimized include directories

2011-11-01 Thread Robert Dailey
Well if you need any help coding the feature let me know. I'm already liking the idea of adding features I want myself into CMake :) Thanks! - Robert Dailey On Tue, Nov 1, 2011 at 3:47 PM, David Cole david.c...@kitware.com wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai

Re: [CMake] How to force value to cache variable without retyping doc string?

2011-11-01 Thread Robert Dailey
Thanks, I didn't even think of doing it like that :) This works great. Thanks! - Robert Dailey On Tue, Nov 1, 2011 at 3:46 PM, Fraser Hutchison fraser.hutchi...@googlemail.com wrote: Hi Robert, I think you need something like: if( NOT COPY_DONE ) ... do work

Re: [CMake] debug/optimized include directories

2011-11-02 Thread Robert Dailey
Awesome idea, +1 This is probably the best work-around until includes get a target property. - Robert Dailey On Wed, Nov 2, 2011 at 2:43 AM, Michael Wild them...@gmail.com wrote: On 11/01/2011 09:49 PM, Robert Dailey wrote: Well if you need any help coding the feature let me know

[CMake] include_directories() and duplicates

2011-11-02 Thread Robert Dailey
Does the include_directories() command strip out duplicate paths added? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http

Re: [CMake] debug/optimized include directories

2011-11-03 Thread Robert Dailey
Thanks for volunteering for this! - Robert Dailey On Wed, Nov 2, 2011 at 7:30 PM, Stephen Kelly steve...@gmail.com wrote: David Cole wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c

Re: [CMake] debug/optimized include directories

2011-11-04 Thread Robert Dailey
David, There is a directory-level property for preprocessor definitions too, right? So how do the target properties for preprocessor definitions handle those? I think they are additive aren't they? I would expect the include directories to be additive too. - Robert Dailey On Fri, Nov

Re: [CMake] debug/optimized include directories

2011-11-07 Thread Robert Dailey
How would it not be additive? get_target_property() for INCLUDE_DIRECTORIES would return target includes + directory includes (that apply to that target, transitively) I don't know if preprocessor definitions follow this but this is the behavior I would expect. - Robert Dailey On Mon

[CMake] list( APPEND ) on a cache variable

2011-11-10 Thread Robert Dailey
I have an internal cache variable and I want to append items to it in a FOR loop using FORCE. Can list( APPEND ) do this for me? If not, can someone show me an example of how this would be done? What are the performance implications of each solution? - Robert Dailey -- Powered

[CMake] VS2003 and reloading projects

2011-11-10 Thread Robert Dailey
for the CMake team, so just wondering if there are any workarounds tips. Thanks in advance. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ

Re: [CMake] VS2003 and reloading projects

2011-11-10 Thread Robert Dailey
That's fine dandy but I have a solution with 120+ projects that each have SCC bindings... that makes them load especially slow! I wish VS was smart enough to just reload the changed projects properly... :( - Robert Dailey On Thu, Nov 10, 2011 at 1:34 PM, David Cole david.c

Re: [CMake] list( APPEND ) on a cache variable

2011-11-10 Thread Robert Dailey
Wow the property idea is perfect. I will use that instead. I tend to think too much in terms of either variable or cache variable, I tend to forget about properties. Thanks! - Robert Dailey On Thu, Nov 10, 2011 at 8:22 AM, Michael Wild them...@gmail.com wrote: On 11/10/2011 02:57 PM

[CMake] Generating for cygwin

2011-11-10 Thread Robert Dailey
Studio. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe

Re: [CMake] Generating for cygwin

2011-11-10 Thread Robert Dailey
CMake build makefiles that utilize VS2003? - Robert Dailey On Thu, Nov 10, 2011 at 2:03 PM, David Cole david.c...@kitware.com wrote: On Thu, Nov 10, 2011 at 2:59 PM, Robert Dailey rcdai...@gmail.com wrote: How do I generate makefiles for cygwin? Can I run CMake through Windows

Re: [CMake] Generating for cygwin

2011-11-10 Thread Robert Dailey
if it is inside Cygwin? I have MSVC 7.1, 8, and 9 on my system. The other thing I'm not sure of is how to tell CMake in Cygwin which MSVC compiler to use. If I need to setup environment variables, how do I know which ones CMake will be looking for and what the values should be? - Robert Dailey

Re: [CMake] Generating for cygwin

2011-11-10 Thread Robert Dailey
On Thu, Nov 10, 2011 at 3:51 PM, Bill Hoffman bill.hoff...@kitware.comwrote: See my email about the VS variables and gmake version. Also, you will need to set CC=cl and CXX=cl before running CMake, or when you run cmake-gui click on the Specify native compilers button after you select Unix

[CMake] CMake + Cygwin + MSVC Toolchain problems

2011-11-11 Thread Robert Dailey
information or do you need some more info? About 20 dependent targets prior to this one compiled just fine. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check

Re: [CMake] CMake + Cygwin + MSVC Toolchain problems

2011-11-11 Thread Robert Dailey
At line 25 in the depend.make file in question, I have this: common/exchange/gdexchsrvcommon/CMakeFiles/gdwincommon.dir/gdcomhelpers.cpp.obj: C:/Program\ Files/Microsoft\ SDKs/Windows/v6.0A/Include/SCardErr.h - Robert Dailey On Fri, Nov 11, 2011 at 1:17 PM, Robert Dailey rcdai

Re: [CMake] CMake + Cygwin + MSVC Toolchain problems

2011-11-11 Thread Robert Dailey
Based on this URL: http://cygwin.com/ml/cygwin/2006-07/msg00376.html Seems like this happens because I am using windows-style paths in Cygwin. I don't know how to make it use different paths though. - Robert Dailey On Fri, Nov 11, 2011 at 1:19 PM, Robert Dailey rcdai...@gmail.com wrote

Re: [CMake] Generating for cygwin

2011-11-11 Thread Robert Dailey
Do you have a sample bash script I could look at? I'm not sure what environment variables need to be setup in my Cygwin environment. Thanks! - Robert Dailey On Thu, Nov 10, 2011 at 10:05 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 11/10/2011 5:14 PM, Robert Dailey wrote: I

[CMake] How to build ccmake.exe on Windows?

2011-11-11 Thread Robert Dailey
I'm using Cygwin with the MSVC toolchain and I need ccmake.exe. I can't use the one from the Cygwin package manager because it's older than the version I'm using. I'd like to build it myself through Visual Studio like I did with cmake and cmake-gui if possible. Any help? - Robert Dailey

Re: [CMake] How to build ccmake.exe on Windows?

2011-11-11 Thread Robert Dailey
) - Robert Dailey On Fri, Nov 11, 2011 at 2:21 PM, Robert Dailey rcdai...@gmail.com wrote: I'm using Cygwin with the MSVC toolchain and I need ccmake.exe. I can't use the one from the Cygwin package manager because it's older than the version I'm using. I'd like to build it myself through

[CMake] CMake single-configuration makefiles

2011-11-13 Thread Robert Dailey
it? I'm new to Makefiles so I'm curious to learn as much as possible about it. Thanks. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http

[CMake] Trying to compile CMake on Cygwin with MS toolchain

2011-11-13 Thread Robert Dailey
I'm trying to compile CMake using the MSVC toolchain but it isn't working when I configure for the first time. The relevant output is below. What do I need to do to get this working? I installed all the packages in Cygwin with the word 'curl' in it, but it still isn't working: -- Performing Curl

Re: [CMake] Problem with LINK_DIRECTORIES

2011-11-14 Thread Robert Dailey
On Mon, Nov 14, 2011 at 6:42 AM, Michael Wild them...@gmail.com wrote: Hi Arun Consider LINK_DIRECTORIES to be obsolete and to be avoided at all cost. I don't really agree with this advice. There are circumstances where link_directories() is absolutely necessary, so advocating to completely

Re: [CMake] Problem with LINK_DIRECTORIES

2011-11-14 Thread Robert Dailey
On Mon, Nov 14, 2011 at 11:00 AM, David Cole david.c...@kitware.com wrote: On Mon, Nov 14, 2011 at 9:36 AM, Robert Dailey rcdai...@gmail.com wrote: On Mon, Nov 14, 2011 at 6:42 AM, Michael Wild them...@gmail.com wrote: Hi Arun Consider LINK_DIRECTORIES to be obsolete and to be avoided

Re: [CMake] Problem with LINK_DIRECTORIES

2011-11-14 Thread Robert Dailey
On Mon, Nov 14, 2011 at 1:59 PM, Michael Hertling mhertl...@online.dewrote: On 11/14/2011 06:17 PM, Robert Dailey wrote: Well maybe you can tell me I'm doing this wrong then, but based on how I am currently setting up my third party libraries, it is required. So basically all third

Re: [CMake] Problem with LINK_DIRECTORIES

2011-11-14 Thread Robert Dailey
What is the difference between CMAKE_LINK_LIBRARY_SUFFIX and CMAKE_IMPORT_LIBRARY_SUFFIX? Which should I use? - Robert Dailey On Mon, Nov 14, 2011 at 2:49 PM, Clinton Stimpson clin...@elemtech.comwrote: That's what I do sometimes. To make that easier, CMake gives some convenience

Re: [CMake] Problem with LINK_DIRECTORIES

2011-11-15 Thread Robert Dailey
On Tue, Nov 15, 2011 at 4:49 AM, Michael Hertling mhertl...@online.dewrote: As David has outlined in the meantime, the advice is not about using FIND_LIBRARY() - which has not been mentioned a single time - but to assemble full paths from the libraries' directories and the libraries

Re: [CMake] How to build ccmake.exe on Windows?

2011-11-15 Thread Robert Dailey
The windows binaries unfortunately do not contain ccmake.exe. - Robert Dailey On Tue, Nov 15, 2011 at 11:24 AM, Bill Hoffman bill.hoff...@kitware.comwrote: On 11/11/2011 3:21 PM, Robert Dailey wrote: I'm using Cygwin with the MSVC toolchain and I need ccmake.exe. I can't use

[CMake] CDash + Perforce

2011-11-16 Thread Robert Dailey
perforce's web viewer is P4Web. Thanks. - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow

Re: [CMake] CDash + Perforce

2011-11-16 Thread Robert Dailey
perforce? Is there a way to tell CTest to not check out source code and instead point it to an existing working copy, that way I can perform the perforce checkout externally via script? This would make for a decent workaround. Thanks. - Robert Dailey On Wed, Nov 16, 2011 at 11:03 AM, David

[CMake] VC2010 Express + CMake = fails

2011-11-18 Thread Robert Dailey
file, but was created by a newer version of Visual Studio and cannot be opened. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:29 (project) Configuring incomplete, errors occurred! - Robert Dailey -- Powered

Re: [CMake] VC2010 Express + CMake = fails

2011-11-18 Thread Robert Dailey
Well since this is VC Express, I don't have a devenv.com file in my Common7 folder, so I guess that explains it? Shouldn't CMake support VC2010 express? - Robert Dailey On Fri, Nov 18, 2011 at 5:10 PM, Robert Dailey rcdai...@gmail.com wrote: When I try to configure my project

Re: [CMake] VC2010 Express + CMake = fails

2011-11-19 Thread Robert Dailey
. - Robert Dailey On Fri, Nov 18, 2011 at 10:48 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 11/18/2011 6:58 PM, Robert Dailey wrote: Well since this is VC Express, I don't have a devenv.com http://devenv.com file in my Common7 folder, so I guess that explains it? Shouldn't

Re: [CMake] VC2010 Express + CMake = fails

2011-11-19 Thread Robert Dailey
I mean specifically is there some environment variable that CMake checks for the location of VC2010? I want to make sure the correct path is set on it. Thanks. - Robert Dailey On Sat, Nov 19, 2011 at 12:08 PM, Michael Jackson mike.jack...@bluequartz.net wrote: The best way to ensure

Re: [CMake] VC2010 Express + CMake = fails

2011-11-21 Thread Robert Dailey
helpful. The only other way for me to figure this out is to skim the source code, which would be very time consuming! Hopefully you can save me some time :) Thanks! - Robert Dailey On Mon, Nov 21, 2011 at 7:03 AM, David Cole david.c...@kitware.com wrote: CMake does use env vars PATH

Re: [CMake] VC2010 Express + CMake = fails

2011-11-21 Thread Robert Dailey
for the guidance. - Robert Dailey On Mon, Nov 21, 2011 at 8:59 AM, Bill Hoffman bill.hoff...@kitware.comwrote: On 11/21/2011 9:23 AM, Robert Dailey wrote: I think though that by default, no visual studio installations place the install path in PATH in the environment. So if I'm remembering

Re: [CMake] VC2010 Express + CMake = fails

2011-11-21 Thread Robert Dailey
it is doing, since obviously it breaks it, and it has no way of verifying what version of devenv it is getting. - Robert Dailey On Mon, Nov 21, 2011 at 9:12 AM, Robert Dailey rcdai...@gmail.com wrote: I have the following versions of VS installed: VS 2003 VS 2005 VS 2008 VC 2010

  1   2   3   4   5   6   7   8   9   >