Re: [CMake] SET(CMAKE_Fortran_FLAGS) not always taking effect

2015-06-22 Thread Ette, Anthony (CDS)
Yet more info. How foolish of me to think it's ok to have to run cmake twice. I found that the heart of the problem was the use of ${CMAKE_BINARY_DIR} in LINK_DIRECTORIES for the FORTRAN target in question (a static library, which other parts of the project depend on). So I have a CXX project

Re: [CMake] SET(CMAKE_Fortran_FLAGS) not always taking effect

2015-06-22 Thread Ette, Anthony (CDS)
More information on this. I just discovered it has nothing to do with my different environments, just that cmake has to run twice (in either environment) for the flags.make file to reflect my SET(CMAKE_Fortran_FLAGS) command. Is this expected behavior? If so, I'll setup a script that runs cm

[CMake] SET(CMAKE_Fortran_FLAGS) not always taking effect

2015-06-22 Thread Ette, Anthony (CDS)
So I am forcing some flags in a high-level CMakeLists.txt for all fortran sources using the subject command. When I invoke via one environment (via python subprocess.popen with modified environment), cmake succeeds and all the build files are generated, however, my flags don't appear in the CMA

[CMake] Multiple targets

2015-06-22 Thread Ghyslain Leclerc
Hello, We have a modular in-house library that we use for our software.  Let’s call it lib_x.  Let’s call a few of the modules (we have 7 I think) mod_y, mod_z, mod_u and mod_v.  Let’s say I have two applications that use all of this and call them app_1 and app_2. The way I have setup our CMa

Re: [CMake] Automatic management of Eclipse projects

2015-06-22 Thread Alexander Neundorf
On Monday, June 22, 2015 18:02:01 Cedric Doucet wrote: > Hello, > > I am testing the possibility of generating Eclipse projects with CMake. > I use the following command line: > cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../src > It works fine. > > However, I would like to

[CMake] Automatic management of Eclipse projects

2015-06-22 Thread Cedric Doucet
Hello, I am testing the possibility of generating Eclipse projects with CMake. I use the following command line: cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../src It works fine. However, I would like to go further in this direction. - What could I put in CMakeLists.t

Re: [CMake] [cmake-developers] Problems when creating config files and add_dependencies

2015-06-22 Thread Brad King
On 06/20/2015 04:10 AM, Roman Wüger wrote: > but the problem with this command is, that for multi configuration > environments (e.g. Visual Studio), it requires $ in the > filename which then creates 4 header files. One for each configuration. Yes, because generator expressions can reference thing

[CMake] FIND_LIBRARY_USE_LIB64_PATHS on Win64

2015-06-22 Thread Micha Renner
Hi, does FIND_LIBRARY_USE_LIB64_PATHS work with Windows64. >From this ... https://public.kitware.com/Bug/view.php?id=15301#c37449 ...one might conclude it does, but on my Win64-System PROJECT(T LANGUAGES C) CMAKE_MINIMUM_REQUIRED(VERSION 3.0) GET_PROPERTY(r22 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB