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
Post a Comment