Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-09 Thread David . Karr
> Indeed I have tried several ways to create and build projects without > using CMake at all, and so far no luck--I still get "requires > elevation" errors. I don't have a solution for my problem yet but it > appears that whatever it is that is stopping me from building projects, > CMake does not

Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-08 Thread David . Karr
> On 1/6/2015 7:10 PM, david.k...@engilitycorp.com wrote: > > I have just started using a new Windows 7 host with Visual Studio > 2010 > > Professional. When I call CMake to generate my project files, I get > > the following output in CMakeError.log: > Does your visual studio work without CMake? C

Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-07 Thread David . Karr
> What do you mean when you say "I set CMAKE_ROOT to a directory" ?? > > That should not be necessary, no matter how you're running cmake... > > Is that an ENV var or a CMake variable you're setting somewhere? CMAKE_ROOT was an ENV variable used by a script outside of CMake that (in the more co

Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-07 Thread David . Karr
A small correction: the problem with "The C compiler identification is unknown" seems to have been due to the fact that I forgot to open that particular command window as administrator. In a new command window, run as administrator, both -G "Visual Studio 10" and -G "Visual Studio 10 Win64" prod

Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-07 Thread David . Karr
I tried this with a CMakeLists file that contains only a PROJECT and ADD_EXECUTABLE (with a single C++ source file). The only things present in the directory before running CMake were the C++ file, CMakeLists.txt, and a batch file that I used to run CMake. I still get the "requires elevation" er

[CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-06 Thread David . Karr
I have just started using a new Windows 7 host with Visual Studio 2010 Professional. When I call CMake to generate my project files, I get the following output in CMakeError.log: == Determining if the C compiler works failed with the following output: Change Dir: C:/_

Re: [CMake] Why do people need so much control over details of their build?

2010-03-31 Thread David . Karr
I am a happy camper today ... Brad King [mailto:brad.k...@kitware.com] wrote: > david.k...@l-3com.com wrote: > > The command-line-and-templates alternative (as implemented in the VS 6 > > generator) had at least three major benefits. > > That design has been a PITA for years. Oops. I didn't rea

[CMake] Why do people need so much control over details of their build? (was RE: exe and dll vs. pdb and idb files (was RE: CMAKE_RUNTIME_OUTPUT_DIRECTORY without the extra'Debug' or 'Release' ?))

2010-03-30 Thread David . Karr
> david.k...@l-3com.com wrote: > > Brad King wrote: > >> Perhaps the install() command is better for that. > > > > it adds an extra step into the procedure > > Just run "make install" instead of "make". If they used make. But yes, I suppose we could have an Install "project" in Visual Studio.

Re: [CMake] exe and dll vs. pdb and idb files (was RE: CMAKE_RUNTIME_OUTPUT_DIRECTORY without the extra'Debug' or 'Release' ?)

2010-03-29 Thread David . Karr
> From: Brad King [mailto:brad.k...@kitware.com] > > david.k...@l-3com.com wrote: >> One thing you can do with one directory full of .exe and .dll files is >> to copy it somewhere elseā€”to an arbitrary directory on another computer, > > Perhaps the install() command is better for that. Not if you

[CMake] exe and dll vs. pdb and idb files (was RE: CMAKE_RUNTIME_OUTPUT_DIRECTORY without the extra'Debug' or 'Release' ?)

2010-03-25 Thread David . Karr
eally want is to control where the executable files-emphasis on executable-are built, separately from all the other files that I don't really need at run time. David Karr From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Erwin Coumans Sent: Monday, Febr

Re: [CMake] what is the right way to set CMAKE_USE_RELATIVE_PATHS?

2010-01-11 Thread David . Karr
>> There are lots of questions on this CMake variable and the consensus is DO >> NOT USE IT. PERIOD. The implementation is basically broken for all but the >> most trivial case. > >I can tell you one thing. If the original idea of this was an attempt >to create a CMake free build that will not work

Re: [CMake] include_external_msproject creating duplicate projects in parent solution

2009-06-05 Thread David . Karr
Tyler Roscoe [mailto:ty...@cryptio.net]: > On Thu, Jun 04, 2009 at 05:14:20PM -0400, david.k...@l-3com.com wrote: > > I wonder if the concept of a PROJECT command in a subdirectory > > of your top-level CMake directory is semantically sound. That is, > > it might work sometimes but cause trouble

[CMake] include_external_msproject creating duplicate projects in parent solution

2009-06-04 Thread David . Karr
Randy Hancock : > I'm getting duplicate projects included in my top-level solution > (*.sln file). I have a cmake project() defined at the top level and in > the test projects for convenience during development. When I use > include_external_msproject in the subprojects it also adds the > external

Re: [CMake] Problem with circular dependencies

2009-05-29 Thread David . Karr
Dmytro Ovdiienko : > Yeah. By David Cole I should merge A and B. But support right ordering of 30 > projects... that may be not trivial. Here is something that confuses me. At the beginning of this discussion, you said there was a CMakeLists.txt file in the directory: that is, you have /CMakeLis

Re: [CMake] unable to include a source file for all sub directories

2009-05-15 Thread David . Karr
ankit jain wrote: > My source tree structure is: > Main_folder >.. Ident.c >..folder1 >f11.c >f12.c > [...] > > Now I am able to get all the source files from all the folders. but the > problem is that all folder source files uses one variable v1 of this Ident.c > file.. > > So th

[CMake] Settings different compile options for diff. files in same folder

2009-05-14 Thread David . Karr
ankit jain wrote: > I have a folder in which there are 5 files > folder > a1.c > a2.c > a3.c > a4.c > a5.c > > Out of these from 4th and 5th iam making a library if iam working on windows > else with the rest three iam building one library for the folder. > Even on windows also iam makin

[CMake] include_directories per target

2009-05-13 Thread David . Karr
Olivier Delannoy wrote: > I would like to set include_directories on a per target basis. I > understand that the INCLUDE_DIRECTORIES property is currently on a per > folder basis. It is a bit of a problem as I would like to flatten my > build and have all my targets generated in a single destinati

Re: [CMake] Technique for generating projects that depend on generated sources

2009-03-01 Thread David . Karr
(You may also suffer some of the same drawbacks, but I suspect that some "ugliness" of that sort is inevitable when you have a generator such as yours.) David Karr ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://

Re: [CMake] How To change VS2005 Output directory

2009-02-03 Thread David . Karr
ot; http://public.kitware.com/Bug/view.php?id=8243 This applies to every version of Visual Studio later than VS6.0, including VS2005. It's nice to know that there is at least some kind of workaround for this particular aspect of the problem. David Karr __

Re: [CMake] equivalent cmakelist for this file

2009-02-03 Thread David . Karr
make' links the compiled objects to create the executable file "abc" because ___. 8. 'make' performs the command _ in this same subdirectory. 9. 'make' goes on to do other things not relevant to this discussion, and then it is done. I think you have told us that step 6 must occur somehow, but you haven't really told us anything about how the makefile decides to do this or what else it does. David Karr ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake Digest, Vol 58, Issue 3

2009-02-02 Thread David . Karr
ds to be called with _exactly_ what command-line parameters from _exactly_ what current working directory. I wish you success. David Karr ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Visual Studio build question

2009-01-12 Thread David . Karr
> The issue I'm seeing, is that if libprovides library project fails > to build, VS decides to try and build the libuses library anyway, > and then complains that libprovides isn't there. > > Is this the intended behavior of VS, or did I perhaps set something > up wrong in my CMakeLists.txt? This

Re: [CMake] add_library and target_link_libraries in different directories?

2009-01-12 Thread David . Karr
> My goal would be to have > > - each library in it's own directory (and a CMakeLists.txt file > with a add_library command) > > - all dependencies stored in a single file at the root level > > root dependency file example: > > target_link_libraries(mylib1 mylib2 mylib4) >

Re: [CMake] Strip a prefix from a string

2009-01-11 Thread David . Karr
I'm afraid this accidentally went through once already while I was in the midst of editing it; this time it's for real. > Suppose I have a string called "foobar". I want to be able to strip a > specific prefix from that string and have the suffix returned to me. > So if I wanted to strip "foo", I

Re: [CMake] Object files of a target/source file

2008-12-11 Thread David . Karr
o see where the OBJ files were written? (A "find" function that worked in a command window would probably work better, of course.) I don't know if this is a "good" solution but it might at least be better than the alternative mentioned in (c). David Karr

Re: [CMake] Output directory

2008-12-05 Thread David . Karr
ine points of control may require user-written template files.) So there is a loss of functionality in transitioning from Visual Studio 6.0 to a later Visual Studio while still using CMake. I complained about this last month, but you finally spurred me to enter the complaint in the CMake bug tra

Re: [CMake] source_group() and solution directories

2008-12-04 Thread David . Karr
> By directories I mean "Solution Folders", sorry for the confusion. > This is a feature that allows you to add "Folders" to the solution. > This has nothing to do with projects. You can add files to these > solution folders. Solution folders are at the same level tree-wise > as projects are (Direc

Re: [CMake] Automatically listing source files with GLOB (Re: How to make FILE() append to the list of files?)

2008-12-01 Thread David . Karr
e was able to adapt to work within them, even when those requirements didn't match anybody's idea of the best environment within which to use a tool like CMake. This says something about the power of the tool. David Karr ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Controlling the locations of files produced by Visual Studio

2008-12-01 Thread David . Karr
here seems to be no other comment on the mailing list, I'll try the issue tracker. David Karr ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Automatically listing source files with GLOB (Re: How to make FILE() append to the list of files?)

2008-12-01 Thread David . Karr
27;t know if or when this will be one of them. The conclusion for me is that when I write a CMakeLists.txt file for a personal project, I never "glob" the files; but the build design of a long-running project needs to account for who is working on it and what procedures will work best

[CMake] Controlling the locations of files produced by Visual Studio

2008-11-26 Thread David . Karr
want, and I can probably get away with this, since the people who run the build script will just use whatever copy of cmake.exe I hand to them. But I would prefer to use existing CMake functionality if it exists; and if it doesn't, I wonder if it would be worth adding this

Re: [CMake] Passing parameters via command prompt

2008-11-26 Thread David . Karr
(placed there by the script that calls cmake.exe); nobody configures that project through the GUI. Maybe that's why I've never noticed any trouble caused by deleting the cache. There's probably a more elegant solution, but since one line in a script apparently fixed the proble

Re: [CMake] ALL_BUILD and ZERO_CHECK

2008-11-24 Thread David . Karr
of > them :) Oh darn, my long-winded (and now evidently unnecessary) reply to an earlier posting crossed this one in the mail. Sorry about that; I hope it doesn't waste anyone's time but mine. David Karr ___ CMake mailing list CMake@

Re: [CMake] ALL_BUILD and ZERO_CHECK

2008-11-24 Thread David . Karr
UILD in return for all the other stuff. At least it doesn't actively _prevent_ me from doing something I need to do. But if you really love a carefully crafted Visual Studio "solution", with every box in every project carefully and individually filled in or checked off or left

[CMake] Making ALL_BUILD be Visual Studio's "startup project"

2008-11-24 Thread David . Karr
change in the code) one could make this happen only if requested, for example by SET(CMAKE_DEFAULT_STARTUP_PROJECT ALL_BUILD), which would let you choose a different default startup project if you like. So, the question: Does anyone want this? David Karr ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Converting a VS Build to CMake/Problems with Post-Build steps, questions

2008-02-29 Thread david . karr
be very hard for me to do without it), and to do the fancy stuff myself on top of that. That's why I have about four or five different scripts to invoke CMake with different sets of variables defined depending on what kind of build I want to make. David Karr ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] improve the CMake language?

2007-11-02 Thread david . karr
nd it's served us very well ever since, though we now have more than 1800 source code files distributed among nearly 50 libraries and executables. David Karr ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake