[CMake] removing CMAKE_BUILD_TYPE(debug/release...) in outpath & libpath

2009-10-21 Thread Darren ha
Dear List! this issue may be discussed already. I am sending raise this because I couldn't find it. I want to - set lib/bin out path to /bin when using MSVC_IDE. but the lib/bin is created in /bin/debug initially. to workaround it, i add a following prefix. IF(MSVC_IDE) SET_TARGET_PROPERTIE

[CMake] configure_file behaves differently on Mac and Linux?

2009-10-21 Thread James C. Sutherland
I am using configure_file to copy files during the build process. I have a nested directory structure, that can be represented as: /rootdir CMakeLists.txt /test CMakeLists.txt When processing rootdir/test/CMakeLists.txt, I have the following: #--- get_filename_

[CMake] add_custom_command/get_target_property bug on Windows?

2009-10-21 Thread Steven Wilson
Consider the following simple C++ file foo.cpp: #include int main() { std::cout << "bar" << std::endl; return 0; } Now consider the following CMakeLists.txt file for foo.cpp: cmake_minimum_required(VERSION 2.6) project(Bug) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_

[CMake] Make test an official dependency...

2009-10-21 Thread Theodore Papadopoulo
From the documentation of add_dependencies: Make a top-level target depend on other top-level targets. A top-level target is one created by ADD_EXECUTABLE, ADD_LIBRARY, or ADD_CUSTOM_TARGET. A test is thus not a valid target to add dependencies to. Often, one wants to build an executable only

Re: [CMake] Visual Studio and /DEBUG linker flag

2009-10-21 Thread Steven Wilson
I am using the Release configuration. On Wed, Oct 21, 2009 at 10:43 AM, Tyler Roscoe wrote: > On Wed, Oct 21, 2009 at 10:30:34AM -0600, Steven Wilson wrote: > > I have CMake project that I use to generate a set of Visual Studio > project > > files. On the CMake side I explicitly turn off CMAKE

Re: [CMake] Visual Studio and /DEBUG linker flag

2009-10-21 Thread Tyler Roscoe
On Wed, Oct 21, 2009 at 10:30:34AM -0600, Steven Wilson wrote: > I have CMake project that I use to generate a set of Visual Studio project > files. On the CMake side I explicitly turn off CMAKE_EXE_LINKER_FLAGS and > CMAKE_EXE_LINKER_FLAGS_RELEASE by setting their values to the empty string > ""

[CMake] Visual Studio and /DEBUG linker flag

2009-10-21 Thread Steven Wilson
I have CMake project that I use to generate a set of Visual Studio project files. On the CMake side I explicitly turn off CMAKE_EXE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS_RELEASE by setting their values to the empty string "". When CMake generates the project files, I can open the .vcproj file

Re: [CMake] Version 2.8 affects exception handling?

2009-10-21 Thread Bill Hoffman
Bill Spotz wrote: Hi, I am a Trilinos developer, so I recently upgraded to CMake version 2.8 so that I could test the Trilinos release 10 tarball. I am seeing certain unit tests fail that were working before (in the Trilinos release 10 repository) and this is the current state of my debuggi

[CMake] Version 2.8 affects exception handling?

2009-10-21 Thread Bill Spotz
Hi, I am a Trilinos developer, so I recently upgraded to CMake version 2.8 so that I could test the Trilinos release 10 tarball. I am seeing certain unit tests fail that were working before (in the Trilinos release 10 repository) and this is the current state of my debugging process:

Re: [CMake] Bug in FindJNI script when using Windows

2009-10-21 Thread Bill Hoffman
Timi Tuohenmaa wrote: Hi, FindJNI script throws some errors (and probably does not work if Java is installed in some way that it's path is not told in Windows registers). I did write a bug report about this, but I made it minor bug so no-one seems to care. http://public.kitware.com/Bug/view.ph

[CMake] Bug in FindJNI script when using Windows

2009-10-21 Thread Timi Tuohenmaa
Hi, FindJNI script throws some errors (and probably does not work if Java is installed in some way that it's path is not told in Windows registers). I did write a bug report about this, but I made it minor bug so no-one seems to care. http://public.kitware.com/Bug/view.php?id=9686 I hope this q

Re: [CMake] Encapsulating macros

2009-10-21 Thread Theodore Papadopoulo
Alexander Neundorf wrote: There was something... If you override an already existing macro/command, the previous version is still available, but with an underscore prefixed, i.e. _find_library(). I'm not sure I remember correctly, but it was somethign close to this. You remembered correctly

[CMake] Including external non-C/C++ (.NET) Visual Studio Projects in a solution.

2009-10-21 Thread GARCIA DE SORIA LUCENA, JUAN JESUS
Hi everyone. In our organization we do both cross-platform software for Windows, Solaris and Linux and, on the Windows side, we end up mixing C++ with C# and VB.NET via SWIG and C++/CLI. Although it would be fantastic to have integrated support for .NET Visual Studio projects in CMake, we deci