Re: [CMake] copying fortran .mod files in different directories

2020-03-04 Thread Lukas van de Wiel
Hi Bill, Thanks a lot for your quick response! Using your idea I could set the Fortran module directory per module target, and add those directories as target_include_directories to the executables. Worked like a charm! Lukas PS. As example, I adapted my cat/dog CMakeLists.txt to this to get to

[CMake] [ANNOUNCE] CMake 3.16.5 available for download

2020-03-04 Thread Robert Maynard via CMake
We are pleased to announce that CMake 3.16.5 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! - Changes in 3.16.5 since 3.16.4:

Re: [CMake] copying fortran .mod files in different directories

2020-03-04 Thread Bill Somerville
On 04/03/2020 09:24, Lukas van de Wiel wrote: we are running a Fortran code containing several dozen modules. These are build in two versions, differentiated by #ifdef statements. The archive files of the two versions are being kept apart by different file names, but the .mod files have fixed

[CMake] copying fortran .mod files in different directories

2020-03-04 Thread Lukas van de Wiel
Dear more experienced cmake user, we are running a Fortran code containing several dozen modules. These are build in two versions, differentiated by #ifdef statements. The archive files of the two versions are being kept apart by different file names, but the .mod files have fixed names, based on

Re: [CMake] Setting rpath via LDFLAGS environment variable

2020-03-04 Thread Sergei Nikulov
вт, 3 мар. 2020 г. в 07:52, Ray Satiro via CMake : > > I am building libssh with cmake. I have two versions of OpenSSL on my > system and need libssh to use the later version of OpenSSL, which is in > /usr/local/ssl/lib. I need that rpath both before and after install, as > libssh should always