Re: [CMake] One project, one platform, 2 compilers

2011-11-18 Thread Paul Hansen
as basis? Is there any documentation about what should be set up in a toolchain file? Thank you very much paul On Fri, Nov 18, 2011 at 2:26 PM, Michael Hertling mhertl...@online.dewrote: On 11/17/2011 05:18 PM, Paul Hansen wrote: Hi I have a project that has to be compiled with two

[CMake] One project, one platform, 2 compilers

2011-11-17 Thread Paul Hansen
Hi I have a project that has to be compiled with two different compilers on the same computer. Can I do that from the same CMakeLists.txt file? Specifically I am wondering: - CMake finds a compiler and makes a test. A colleague has tried to change the compiler variables but CMake made the test

[CMake] add_subdirectory() twice = Policy CMP0013 is not set: Duplicate binary directories are not allowed

2011-11-04 Thread Paul Hansen
Hi I have several small projects. Some of them may include another project. I have one big project that includes all small projects. File structure: projects - p1.cmake (add_subdirectory(dir_project1)) - p2.cmake (add_subdirectory(dir_project2)) - dir_project1 - dir_project2 Some of these

[CMake] Common CMake setup for several projects

2011-10-14 Thread Paul Hansen
Hi Is it possible to make a common CMake setup that can be used in several projects? The projects are independant but do use common libraries. Would be nice to set this up in one place and not in the CMakeLists.txt for each project. Can it be done preprocessor-like: #include

[CMake] Un-program Visual Studio (msvc 10) compiler in cygwin

2011-10-12 Thread Paul Hansen
Hi I have tried different ways to escape the MSVC compiler. I have installed Cygwin on Windows 7 and try this out in Cygwin I tried to - set CMAKE_CC_COMPILER=compiler.exe in CMakeLists.txt (before project()) - cmake.exe -D CMAKE_CC_COMPILER=compiler.exe . - cmake.exe -D