You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4144 Reporter: cniehaus Status: closed (set by @mshinwell on 2016-12-06T21:07:19Z) Resolution: won't fix Priority: normal Severity: feature Version: 3.10+dev Category: ~DO NOT USE (was: OCaml general) Monitored by:@hcarty
Bug description
ocamldep is the tool which parses the ocaml files and (currently) generates a
dependency file which can be used (included) in Makefiles.
Now it would be cool if ocamldep would have a switch so we can tell it to
generate the file not in Makefile, but in CMake format.
You can see in the attached ocamldeps.cmake how this could look like. So it's
not really hard to generate the other format.
Instead of ideally the full path to the respective file has to be
inserted. I don't know whether this will be possible. If not, maybe simply
inserting ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR} for
the .cmi and .ml files would also be good enough.
Original bug ID: 4144
Reporter: cniehaus
Status: closed (set by @mshinwell on 2016-12-06T21:07:19Z)
Resolution: won't fix
Priority: normal
Severity: feature
Version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @hcarty
Bug description
ocamldep is the tool which parses the ocaml files and (currently) generates a
dependency file which can be used (included) in Makefiles.
Now it would be cool if ocamldep would have a switch so we can tell it to
generate the file not in Makefile, but in CMake format.
You can see in the attached ocamldeps.cmake how this could look like. So it's
not really hard to generate the other format.
Instead of ideally the full path to the respective file has to be
inserted. I don't know whether this will be possible. If not, maybe simply
inserting ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR} for
the .cmi and .ml files would also be good enough.
Additional information
You can find more information about CMake here: http://www.cmake.org/HTML/Index.html
File attachments
The text was updated successfully, but these errors were encountered: