[CMake] Write CMakeLists in another programming language?

2014-04-03 Thread Clark Wang
I've been using cmake for some time but still I'm confused about the syntax. Following are 2 examples from me: - http://www.cmake.org/pipermail/cmake/2013-September/055924.html - http://www.cmake.org/pipermail/cmake/2013-October/056036.html Someone ever told me cmake 3.0 may do some language cl

[CMake] PREFIX property not working for me

2014-04-03 Thread Michael Surette
I am trying to get a library to build both static and dynamic libraries to build in a project. It works except for the Visual C++ case, where there is a name collision. I have tried several things including the suggestion in the FAQ to add a PREFIX to one of the libraries. Here is a section

Re: [CMake] What do I need to do to insure that CMake uses gfortran?

2014-04-03 Thread Nils Gladitz
On 03.04.2014 23:07, Conan wrote: I have my env var FC set to /usr/bin/gfortran. This is verified by the line MESSAGE("FC = " $ENV{FC}). However GET_FILENAME_COMPONENT(Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME) sets Fortran_COMPILER_NAME to f95. I thought by setting the FC env

[CMake] What do I need to do to insure that CMake uses gfortran?

2014-04-03 Thread Conan
I am trying to use CMake to build a fortran test app. My CMakeLists.txt is as follows: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) SET (TARGET_NAME test) PROJECT (${TARGET_NAME} Fortran) MESSAGE("FC = " $ENV{FC}) GET_FILENAME_COMPONENT(Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME) MESSAGE("F