They are listed as dependencies for the target, ie:
add_executable(myexe Module1.F90)
or
add_executable(myexe Module2.F90)
depending on whether OPTION1 is defined or not (really, there's an
option(USE_OPTION1) etc).
The actual project is way more complicated than this -- we store the files to
be processed in variables so it really looks like
add_executable(myexe ${MY_SRC_FILES})
and I checked the variable and the correct module file is there but it's not
being built in the correct order.
Tim
----- Original Message -----
From: "Brad King" <[email protected]>
To: [email protected]
Cc: "Tim Gallagher" <[email protected]>, [email protected]
Sent: Tuesday, March 29, 2011 5:13:56 PM
Subject: Re: [CMake] Fortran dependency scanning
On 03/29/2011 11:53 AM, Tim Gallagher wrote:
> Hi,
>
> We ran into an issue using CMake with our fortran project. We have
> constructions such as:
>
> ...
> #ifdef OPTION1
> USE Module1
> #else
> USE Module2
> #endif
> ...
>
> It's not actually finding modules as dependencies. Any thoughts?
Are those modules provided by other sources in the same target or
other targets to which this target links?
-Brad
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake