cmake missing fortran module dependency in preprocessor directive -


i'm run problem cmake missing dependency. code in question looks like.

        subroutine foo         use   #ifdef c         use b   #endif         ... 

it looks preprocessor blocked portion getting excluded when generating dependencies. causing error because module b never gets built before source file. how can resolve this?

update:

i'm setting preprocessor define here.

add_library (abc static ${abc_sources}) set_target_properties (abc properties compile_flags "${build_flags} -d c") 

figured out. correct solution use

set_target_properties (abc properties compile_definitions "c") 

compile_definitions set_target_properties anaglog add_definitions.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -