[CMake] Dependency between Fortran projects added with cmake_add_fortran_subdirectory

2014-04-12 Thread victor.zverov...@gmail.com
Hi, I have a C++ project with two subprojects written in Fortran, sub1 and sub2. To be able to build them on Windows with MinGW's gfortran, the subprojects are added to the main project with cmake_add_fortran_subdirectory as described in http://www.kitware.com/blog/home/post/231. Moreover, sub2 ca

[CMake] How to build several packages for a library with CPack?

2014-04-12 Thread SF Markus Elfring
Hello, A wiki article contains some information for the generation of installation packages. http://cmake.org/Wiki/index.php?title=CMake:Packaging_With_CPack#Using_CMake_variables_to_configure_CPack I would like to generate software packages for the following components. 1. Class library 2. Demon

Re: [CMake] cmake - configuration roolback to default

2014-04-12 Thread Iosif Neitzke
Is this usage what you are describing? http://cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F On Sat, Apr 12, 2014 at 7:48 AM, wrote: > Hi, > > i want to change CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to gcc-4.7 and > g++-4.7. But when i run cmake, the configuration rollback to d

[CMake] cmake - configuration roolback to default

2014-04-12 Thread shahidan
Hi, i want to change CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to gcc-4.7 and g++-4.7. But when i run cmake, the configuration rollback to default. Can somebody help me? ==> CMakeCCompiler.cmake <== SET(CMAKE_C_COMPILER "/usr/bin/gcc") SET(CMAKE_C_COMPILER_ARG1 "") SET(CMAKE_C_COMPILER_ID "GNU")