[CMake] Adding a generated file as a dependency to a target

2012-01-27 Thread Schuchard, Matthew
Contrary to the CMake FAQ, but consistent with what I have been reading elsewhere, it does not seem possible for me with CMake 2.8.6 to add a generated file as a dependency to a target, even in the same directory. I have done something similar to the following: add_custom_command(OUTPUT foo.ext

[CMake] Incorrect implicit library selections in generated link statements

2012-01-03 Thread Schuchard, Matthew
I have a large static library comprised of C, C++, Fortran, and Ada source files. I have a number of C, C++, Fortran, and Ada executables linking against this library. When CMake generates the link statements in link.txt, the implicit libraries selected to be linked against from the possibiliti

[CMake] Append Implicit Link Library

2011-12-14 Thread Schuchard, Matthew
I am trying to add a library to implicitly link against for the Absoft Fortran compiler. CMake generates the libraries to implicitly link against for this compiler seemingly from source code, since the Compiler/Absoft-Fortran and Platforum/Linux-Absoft contain nothing about what libraries to im

Re: [CMake] CMake builds library/executable out of order

2011-12-07 Thread Schuchard, Matthew
t target names, which has worked fine thus far. -Original Message- From: David Cole [mailto:david.c...@kitware.com] Sent: Wednesday, December 07, 2011 9:53 AM To: Schuchard, Matthew Cc: cmake@cmake.org Subject: Re: [CMake] CMake builds library/executable out of order On Wed, Dec 7, 2011 a

[CMake] CMake builds library/executable out of order

2011-12-07 Thread Schuchard, Matthew
I am having this strange issue with building a library and then linking it to an executable. If I have the following in my CMakeList: add_library(libfoo.a ${srcfiles}) add_executable(foo_exec.Fx foo_exec.F) target_link_libraries(foo_exec.Fx libfoo.a) I get an error returned of "no rule to make

Re: [CMake] Globally Set Target Properties

2011-11-08 Thread Schuchard, Matthew
to libraries, but I see now it is also for linking built libraries. -Original Message- From: Michael Wild [mailto:them...@gmail.com] Sent: Tuesday, November 08, 2011 12:34 AM To: Schuchard, Matthew Cc: cmake@cmake.org Subject: Re: Globally Set Target Properties Sorry, I misread your

Re: [CMake] Globally Set Target Properties

2011-11-07 Thread Schuchard, Matthew
IX command I had mentioned in the initial message. Do you know if is possible to set global properties of targets like I am trying to? From: Schuchard, Matthew Sent: Monday, November 07, 2011 11:06 AM To: Schuchard, Matthew Subject: Globally Set Target Properties On 11/07/2011 04:15 PM, Schuch

[CMake] Globally Set Target Properties

2011-11-07 Thread Schuchard, Matthew
I am trying to globally set target properties for an entire configuration. Specifically, I need to remove the prefix "lib" from all statically linked libraries I build. I already used CMAKE_STATIC_LIBRARY_PREFIX "" such that all libraries I explicitly link to will not have CMake search for libra

[CMake] CMake Using a C Preprocessor for Fortran Source Files

2011-11-02 Thread Schuchard, Matthew
Hi, I have three questions about CMake's use of a C Preprocessor for Fortran Source Files. I have scoured the CMake help documentation and googled extensively but have not found any solutions that worked for my specific situations. 1. What is the default C Preprocessor CMake uses for Fortran f