Awesome, thanks!
On Wed, Apr 3, 2019 at 10:26 AM Brad King wrote:
> On 4/3/19 10:09 AM, Zaak Beekman wrote:
> > They contain the mod files. I didn't ask for a $ directory to
> > be created for me within the CMAKE_Fortran_MODULE_DIRECTORY but it's
> > there, and all the
Thanks so much Brad!
On Wed, Apr 3, 2019 at 9:35 AM Brad King wrote:
> The `install(DIRECTORY)` approach is the current recommendation.
OK
> Do those directories contain the `.mod` files or are they extra?
> In the latter case, use `install(DIRECTORY)`'s options for excluding
> content by
, followed by a `foreach(...)` loop over all the found
artifacts to install them with `file(INSTALL ...)`. This feels
fragile, and un-idiomatic. Am I missing a better way to do this?
Thanks,
Zaak
On Sun, Mar 31, 2019 at 5:10 PM Zaak Beekman wrote:
>
> Hi all,
>
> What's the best approach
Hi all,
What's the best approach for handling cross-platform (i.e., MSVS, Mac,
Linux) installation of Fortran module files associated with
libraries?
After searching the docs, I couldn't find any good and obvious way to
handle installation of Fortran module files associated with library
Hi Craig, et al,
Craig, once again, thank you for writing such a great reference and
learning book! I have a few responses inline below.
On Mon, Dec 10, 2018 at 6:34 AM Craig Scott wrote:
> This is only going to be an issue for single-configuration generators. For
> multi-config generators,
I have been reading the *excellent* book "Professional CMake". The author,
Craig Scott, recommends the following best practices:
- check the existence of `CMAKE_CONFIGURATION_TYPES` and only adding or
pruning configurations if it's preset, *AFTER* your call to `project()`
- do not set
Hi All,
It seems to me that there is a bug in FindMPI in the latest CMake and/or in
the Travis-CI macOS (`osx`) environment. Has anyone had success testing
with the latest CMake a C & Fortran application that requires MPI on
Travis-CI osx nodes? (Ideally using GNU compilers all the way.) If you
ri, Jul 27, 2018 at 4:47 PM Zaak Beekman wrote:
> I'm trying to use a superbuild to tightly control third party libraries
> for an application. They will all be statically linked in the end (besides
> deps like MPI that are effective system libraries). I have the following
> code in th
s) would get the
`-I.../include/vtkmofo/mod` flag passed during compilation. Am I missing
something?
Thanks,
Zaak
Izaak "Zaak" Beekman
---
HPC Scientist
ParaTools Inc. <http://www.paratools.com/>
1509 16t
_TRAILING_WHITESPACE
RESULT_VARIABLE WRAPPER_RETURN)
Is this a bug in FindMPI.cmake or are we doing something wrong in the build
system?
The original thread can be seen at:
https://github.com/sourceryinstitute/OpenCoarrays/issues/541
Many thanks,
Zaak
through
registry keys, the machine arch is queried and the included CMake is
launched with the correct MSVS version and arch specified to the -G
generator flag.
Thanks to all for all your help and suggestions!
Best,
Zaak
On Thu, Apr 19, 2018 at 5:37 PM Zaak Beekman <zbeek...@gmail.com>
dlls are needed, but I suppose not.
>
> We use cmake like that. We've committed a copy in our git repo, and have a
> simple means to update cmake for everyone
> in the team at once.
>
> Jano
>
> On Thu, Apr 19, 2018 at 6:55 PM, Zaak Beekman <zbeek...@gmail.com> wrote
Ha, yeah that’s an option. The problem is that they’re not “my”
contractors. They are the client’s contractors. We’ll see.
On Thu, Apr 19, 2018 at 12:52 PM Cristian Adam <cristian.a...@gmail.com>
wrote:
> On Thu, Apr 19, 2018 at 5:46 PM, Zaak Beekman <zbeek...@gmail.com> wrote:
>
On Thu, Apr 19, 2018 at 11:51 AM Konstantin Tokarev
wrote:
> Then your best choice is probably Premake (http://premake.github.io/)
>
No.
Big project. Have build system. CMake has 1st class language support for
Fortran. I can't introduce a LUA dependency.
--
Powered by
allows for that.
Thanks,
Zaak
Izaak "Zaak" Beekman
---
HPC Scientist
ParaTools Inc. <http://www.paratools.com/>
ibeek...@paratools.com
1509 16th St, NW
Washington, DC 20036
Just FYI. I found an OK work around in that issue.
On Thu, Apr 12, 2018 at 9:22 AM Brad King <brad.k...@kitware.com> wrote:
> On 04/11/2018 01:44 PM, Zaak Beekman wrote:
> > I thought that CMake had Fortran submodule support as of 3.8 or 3.10.
>
> CMake 3.7 added s
that CMake will generate a make file that ensures the source files are
processed in the correct order, even with `make -j`?
Thanks,
Zaak
Izaak "Zaak" Beekman
---
HPC Scientist
ParaTools Inc. <http://www.
h spending my limited time investigating this
further or is this expected/common-practice/acceptable usage?
Thanks,
Zaak
Izaak "Zaak" Beekman
---
HPC Scientist
ParaTools Inc. <http://www.paratools.com/>
1509
t!
Thanks,
Zaak
Izaak "Zaak" Beekman
---
HPC Scientist
ParaTools Inc. <http://www.paratools.com/>
5520 Research Park Drive
Suite 100
Baltimore, MD 21228
phone: (443) 543-5
it if needed. Otherwise, the child project will run as intended
when configured and built on its own (i.e. just with GFortran, w/o coarray
support & OpenCoarrays).
Thanks,
Zaak
Izaak "Zaak" Beekman
---
I need some guidance. I am writing a find module for a package that defines
multiple library archives, includes and Fortran module files. I would like
to make a "best practices" and "modern" find module and define a target so
that transitive properties are propagated correctly. I would like to
On Thu, Dec 1, 2016 at 2:02 PM Chuck Atkins
wrote:
>
> I think the logic is a bit backwards on this and if you were to make a
> change, I'd suggest it be there and re-order a few things such that if MPI
> things haven't been already explicitly set then the *first* thing
OK, upon more careful reading of the documentation for FindMPI, and
realizing that I am using CMake 3.6 not 3.7 I have adjusted my approach to
be consistent with the documentation and your suggestions. I don't know if
the documentation actually needs expanding upon... I think I just failed to
ILER=/path/to/mpif90
>
> --
> Chuck Atkins
> Staff R Engineer, Scientific Computing
> Kitware, Inc.
>
>
> On Wed, Nov 23, 2016 at 6:05 PM, Zaak Beekman <zbeek...@gmail.com> wrote:
>
> Hi,
>
> I want to be able to pass FC=mpif90 (or FC=$(which mp
DMPI_C_COMPILER=/path/to/mpicc
> -DMPI_CXX_COMPILER=/path/to/mpiCC
> -DMPI_Fortran_COMPILER=/path/to/mpif90
>
> --
> Chuck Atkins
> Staff R Engineer, Scientific Computing
> Kitware, Inc.
>
>
> On Wed, Nov 23, 2016 at 6:05 PM, Zaak Beekman <zbeek...@gmail.com&
Hi,
I want to be able to pass FC=mpif90 (or FC=$(which mpif90)) and CC=mpicc
etc. OR also be able to pass a compiler and use FindMPI to add link,
compile and include flags. I'm encountering an issue when my MPI
implementation is not on my PATH, I want CMake to be able to look in an
additional
H). This isn’t the most elegant solution, but
> it seems fairly robust.
>
>
>
> -kt
>
>
>
> *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *Zaak Beekman
> *Sent:* Thursday, June 16, 2016 9:14 AM
> *To:* cmake@cmake.org
> *Subject:* [CMake] oversubs
Does anyone know a good way to determine if `find_package(MPI REQUIRED)` is
returning OpenMPI? I need to know, because OpenMPI does not handle
oversubscribed (more ranks than cores) tests well without explicitly
telling OpenMPI that you are oversubscribing. This can be done by creating
a hosts
> So if I require Fortran 2003 for our fortran codes then this whole
> ?fortran name-mangling? thing becomes a moot point, i.e. I do not have to
> actually worry about it at all for our project. Just have to keep the C
> header consistent with the FORTRAN functions, but that part is on our devs.
>
, 2015 at 8:56 AM Brad King <brad.k...@kitware.com> wrote:
> On 12/04/2015 05:51 PM, Zaak Beekman wrote:
> > What are the pros and cons of using FindMPI over passing FC=mpif90 and
> CC=mpicc?
>
> It shouldn't matter much if all the code in the project is meant
> to be
>From working on a Homebrew formula <
https://github.com/Homebrew/homebrew/pull/46547> for OpenCoarrays <
https://github.com/sourceryinstitute/opencoarrays> I'm under the impression
that common practice is to use FindMPI over passing mpicc and mpif90 to
cmake directly. Is this correct, and the way
I’m having trouble determining the right way to enforce `-O0` optimization
level when the user selects a boolean cache entry to enable code coverage
with gcov. I tried something like:
if ( ENABLE_CODE_COVERAGE )
set ( CMAKE_Fortran_FLAGS “${CMAKE_Fortran_FLAGS} -fprofile-arcs
When multiple executables or libraries depend on the same fortran source
file that contains a module, parallel (Makefile) builds are failing for me
because the .mod file is getting moved/renamed/written by more than one
process at a time. Is there a way to have the same module containing
Great! I would certainly like this functionality to be officially added to
CMake and in the mean time will use your module... speaking of which, it
seems that it was scrubbed from the digest email, or not originally
attached. Can you please send it to me?
On Thu, Jan 29, 2015 at 8:42 PM
I suspect an issue with Xcode/Intel compilers independent of CMake. Have
you tried creating and building a new Fortran project in Xcode?
If it doesn't work, have you upgraded Xcode recently? I have no experience
with Xcode, but I do know that Apple pushed out an Xcode update recently
and that the
Hi Bill,
I feel your pain. I suspect a CMake bug is hidden away somewhere causing
this behavior, and have struggled with this quite a lot.
I *think* explicitly passing the relevant option to the linker fixes this,
although I have some other CMake/Fortran/Mac hackery happening in my
CMakeLists.txt
Well, it depends on who you are expecting the user to be and what their
background is. I always configure new cmake buiulds with cmake-gui or
ccmake, which I find to be much easier than auto tools, because the
documentation and ability to set options is in the same place--one stop
shopping. No
Am I correct in stating that ExternalProject_Add() cannot completely
replace find_package()?
e.g. if I point ExternalProject_Add() to download a software package
(which uses a CMake build system and exports its targets and provides
a package-config.cmake file) the only thing this does is to
Looking at page 80 in 'Mastering CMake' fifth edition, is says that the
proj-targets.cmake file contains code such as
`get_filename_component (_self ${CMAKE_CURRENT_LIST_FILE} PATH)`
`get_filename_component (PREFIX ${_self}/../.. ABOSULTE)`
I'm on Mac OS X using CMake 2.8.12 and was emulating a
I one more quick point: I don't want to install the libraries to standard
locations because there may be multiple Fortran compilers installed on a
given system, and client code cannot be built and linked using a different
compiler than the library. Therefore the library and mod files and CMake
If I want to create an OSX bundle, but I want the main executable to be a
configured wrapper script written in bash, what is the best way to go about
doing that? It seems that the
Also, how do I get the wrapper script to correctly call the compiled
executable so that the app bundle is
I compile my Fortran and C project using the GCC and Intel compilers on Mac
OS X. After calls to fixup_bundle the required dynamic libraries get copied
into the Contents/MacOS/ directory, and libgcc_s.1.dylib is copied there
when compiling with either of the compilers. However, the output of otool
I'm not sure if this is a bug, but in my top level CMakeLists.txt file I
try to do something like this:
cmake_minimum_required ( VERSION 2.8.11 FATAL_ERROR )
include ( checkOutOfSource.cmake )
include ( configureBuilds.cmake )
include ( configurePlatform.cmake )
enable_language ( C )
===
(301)244-9367
Princeton University Doctoral Candidate
Mechanical and Aerospace Engineering
ibeek...@princeton.edu
UMD-CP Visiting Graduate Student
Aerospace Engineering
ibeek...@umiacs.umd.edu
ibeek...@umd.edu
On Tue, Apr 15, 2014 at 5:24 PM, Zaak Beekman zbeek
Brad, thanks so much for your help! From the online documentation it can be
hard to figure out which variable/property controls certain features as
someone with limited CMake experience.
One strange detail I forgot was that this problem does not appear on Mac/OS
X for the same project using the
...@umd.edu
On Tue, Apr 15, 2014 at 10:56 AM, Zaak Beekman zbeek...@gmail.com wrote:
Brad, thanks so much for your help! From the online documentation it can
be hard to figure out which variable/property controls certain features as
someone with limited CMake experience.
One strange detail I
I have a mixed language project, most of which is in Fortran, but some of
it is in C. I have disabled C++ and enabled C and Fortran explicitly. I am
using the 32 bit Intel composer XE 13.1.0 2013 compilers (on a Linux x86_64
RHEL 5 Linux machine) and I am building static executables so that they
I might also add that the set_property() approach has an additional
advantage over the set_source_files_properties(): The APPEND and
APPEND_STRING options allow you to add properties like dependencies without
overwriting the values which already exist.
Hi Phil.
If your FOO.asm is used as a
ibeek...@umiacs.umd.edu
ibeek...@umd.edu
On Mon, Feb 3, 2014 at 11:46 AM, Brad King brad.k...@kitware.com wrote:
On 01/30/2014 05:43 PM, Zaak Beekman wrote:
I noticed that output_required_files is deprecated.
Yes, it has been marked as such since CMake 2.8.5:
http://cmake.org/gitweb?p
I noticed that output_required_files is deprecated. Is there a way to
determine the dependencies of a Fortran source file that I can then
manipulate in a CMakeLists.txt file? Fortran dependency resolution is a
pain, and I need to determine dependencies for a custom target.
TIA,
Zaak
--
Powered
Hi,
I managed to write a macro to determine the largest available Fortran
integer kind so that it can be #defined at compile time where needed--via
compiler supplied preprocessors or the cpp. The macro I wrote needs some
more refinement/abstraction, but the basic technique is there. I am sharing
Please ignore this post; I didn't understand where try_run() was looking
for the source code previously. My most recent post has this resolved, and
a solution to diagnosing the largest available Fortran integer at compile
time so that it can be inserted via an appropriate preprocessing directive
On Fri, Sep 20, 2013 at 12:00 PM, cmake-requ...@cmake.org wrote:
Is your original
message saying that a Fortran compiler might compile
integer*8 myinteger
but fail at runtime?
No, my point is that there is no guarantee that integer*8 or integer*16
exist at all (at compile time) but you
Hi,
I'm not sure if I should submit a bug report about this or not, but there
are two issues with building distributable binaries with the Intel
compilers on Mac OS X.
1. I think that '-Wl,-macosx_version_min,${CMAKE_OSX_DEPLOYMENT_TARGET}'
should be added to all the linker flags. Without
Hi,
I am wondering what the best way to detect and prevent in source builds is.
Some potential pitfalls are relative paths vs absolute paths, and symbolic
links (build_dir - source_dir). If anyone has any suggestions, I'd love to
hear them. Obviously string comparisons handle neither of these
Hi,
I am using the UseLATEX package, and I was wondering if there was a way to
automatically download the UseLATEX.cmake file to be included in the
CMakeLists.txt file. I was thinking of using the ExternalProject module,
however, I'm not sure this will work.
When is the external project
On Thu, Aug 1, 2013 at 7:07 PM, Moreland, Kenneth kmo...@sandia.gov wrote:
The easiest solution is to simply copy UseLATEX.cmake to your project
and update it by hand when necessary, which is probably never. That's what
I do.
-Ken
Sent from my iPad so blame autocorrect.
I am using a
So this question is not 100% about cmake, but I am going to ask anyway.
What is a good project layout (for a CMake project) that will let me:
a) group related components
b) allow testing and building of individual components
c) without causing maintenance/debugging headaches, and having to update
Does anyone have any experience adding tests to check for memory leaks on
Macs? I come from more of a Linux background and am new to CMake and CTest.
I am not using CDash yet, and writing software in C and Fortran.
It seems that Valgrind is still very experimental for Mac, especially for
Mountain
It seems hard to find documentation for this variable. Is it set by
enable_language(LANG)? Can I call enable_language(LANG) BEFORE I call
project()?
Does anyone know a good way to provide default, compiler specific values
for CMAKE_LANG_FLAGS in the cache? It seems that calling set() with the
Hi,
I'm pretty new to CMake/CTest, and I was wondering what the best way to
switch between compilers is when testing and building the same project with
multiple compilers. It seems deleting the CMake cache from cmake-gui
doesn't always work to switch compilers (which I am specifying with `export
On Fri, May 10, 2013 at 8:48 PM, cmake-requ...@cmake.org wrote:
I'm trying to figure out how to install the module (.mod) files that are
generated by the Fortran compiler.
[SNIP]
Thanks!
Neil
Neil,
I'm curious why you want to install the .mod files. As far as I know, I
don't think you
62 matches
Mail list logo