Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread Titus von Boxberg
Am 28.11.2012 13:59, schrieb Michael Jackson: On Nov 28, 2012, at 7:37 AM, David Doria wrote: On Wed, Nov 28, 2012 at 4:22 AM, Andrew Maclean wrote: Interesting ... I have no problems, the only thing I can think of is that I had VS 2010 SP1 installed before I installed VS 2012 Express, I di

Re: [CMake] How to get Visual Studio to use more than a single core for compiling

2012-11-26 Thread Titus von Boxberg
Am 27.11.2012 05:24, schrieb Michael Jackson: That will teach me to hit enter in GMail.. My question is this: What is the magic CMake incantation to get Visual Studio 2010 to use more than a single processor when compiling my project? You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS Rega

Re: [CMake] CMake project building other CMake projects

2012-10-19 Thread Titus von Boxberg
Hi, I just switched from ExternalProject to add_subdirectory. The reason for me to switch was (just discussed a few days ago on this list) that with ExternalProject there is no automatic way to get nice IDE project files. My "reason" to use ExternalProject was that I didn't understand that I coul

Re: [CMake] ExternalProjects with Visual Studio

2012-10-17 Thread Titus von Boxberg
Am 16.10.2012 19:47, schrieb David Cole: If you want "real" vcxproj references, then use add_subdirectory instead of ExternalProject to build things directly. Or is there some reason you can't do that? Apparently not, and this seems to be the Right Idea. It's just that I wouldn't have thought o

[CMake] include, macro and project

2012-10-17 Thread Titus von Boxberg
Hi all, maybe it's a silly question, but RTFM doesn't enlighten me yet: I'd like to set the project() in a macro() defined in a file included by CMakeLists.txt. The macro get's called immediately after including() the file from within CMakeLists.txt When calling the macro cmake executes the ste

Re: [CMake] Adding dependencies for static libraries

2012-10-16 Thread Titus von Boxberg
Am 16.10.2012 17:53, schrieb Robert Bielik: Titus von Boxberg skrev 2012-10-16 13:20: Actually, "target_link_libraries(C B)" puts B into the Additional Dependencies of the VC project generated for C. Unfortunately that doesn't cut it. target_link_libraries adds the build dep

Re: [CMake] Adding dependencies for static libraries

2012-10-16 Thread Titus von Boxberg
Am 16.10.2012 12:43, schrieb Robert Bielik: Hi all, I haven't found the answer to this: I have a static library A that uses static library B, but when I create an executable C I only want to link with A. AFAIK you have to link C also with B. You might add a target_link_libraries(C B) in C's conf

[CMake] ExternalProjects with Visual Studio

2012-10-15 Thread Titus von Boxberg
Hi all, my C++ sources are split into several (static) libraries and an executable that uses the static libs. All of those source modules have CMake configurations. I'm using ExternalProject_Add in the executable's CMakeLists.txt together with target_link_libraries to add the static libs to the