[CMake] Adding file to IDE folder without adding files to targets

2015-08-28 Thread James Bigler
I want to have some files show up in the IDE. I know I can add files to targets, but the problem is these files don't belong to a particular target. It would be nice to have them show up in a folder (similar to how the target FOLDER property or source_group function works). Is this possible? Th

Re: [CMake] Missing -lgfortran with FortranCInterface verify calls

2015-08-28 Thread Brad King
On 08/27/2015 03:24 AM, Daniel Wirtz wrote: > CMake 3.3.0. [snip] > after checking, the @CMakeFiles/VerifyFortranC.dir/linklibs.rsp does not > contain the "-lgfortran" library include, hence the fuss. I managed to reproduce this and track down the problem. Here is a fix based on 3.3.1: Makefil

[CMake] linking: absolute path vs -l

2015-08-28 Thread Nico Schlömer
Hi everyone, I'm curious about when CMake decides to link a library by its absolute path and when it links using the `-l*` syntax. I came across this for the very simple test problem ``` cmake_minimum_required(VERSION 3.0) project(mytest) find_package(ZLIB REQUIRED) find_package(netCDF REQUIRED)