Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: summary of options and available targets #1173

Open
agarny opened this issue Aug 3, 2023 · 2 comments
Open

CMake: summary of options and available targets #1173

agarny opened this issue Aug 3, 2023 · 2 comments
Labels
Infrastructure Building, hosting, testing, etc.

Comments

@agarny
Copy link
Contributor

agarny commented Aug 3, 2023

Right now, upon configuring libCellML, I have no idea (unless I check https://github.com/cellml/libcellml/blob/main/docs/dev_configuration_options.rst) which options were set to what. In the same way, I have no idea which targets are available to me.

So, it would be nice, upon configuration, to have a summary of the values of the different options that were set, as well as a list of the targets that are available. For instance, for libOpenCOR, I get the following when default configuring libOpenCOR:

-- Configuration summary:
--  - LIBOPENCOR_BUILD_TYPE:              Debug
--  - LIBOPENCOR_CODE_ANALYSIS:           OFF
--  - LIBOPENCOR_CODE_COVERAGE:           OFF
--  - LIBOPENCOR_COMPILER_CACHING:        ON
--  - LIBOPENCOR_DOCUMENTATION:           ON
--  - LIBOPENCOR_INSTALL_PREFIX:          /usr/local
--  - LIBOPENCOR_JAVASCRIPT_BINDINGS:     OFF
--  - LIBOPENCOR_JAVASCRIPT_UNIT_TESTING: OFF
--  - LIBOPENCOR_PREBUILT_LIBCELLML:      ON
--  - LIBOPENCOR_PREBUILT_LIBCOMBINE:     ON
--  - LIBOPENCOR_PREBUILT_LIBCURL:        ON
--  - LIBOPENCOR_PREBUILT_LIBNUML:        ON
--  - LIBOPENCOR_PREBUILT_LIBSBML:        ON
--  - LIBOPENCOR_PREBUILT_LIBSEDML:       ON
--  - LIBOPENCOR_PREBUILT_LIBSSH2:        ON
--  - LIBOPENCOR_PREBUILT_LIBXML2:        ON
--  - LIBOPENCOR_PREBUILT_LLVMCLANG:      ON
--  - LIBOPENCOR_PREBUILT_OPENSSL:        ON
--  - LIBOPENCOR_PREBUILT_SUNDIALS:       ON
--  - LIBOPENCOR_PREBUILT_ZIPPER:         ON
--  - LIBOPENCOR_PREBUILT_ZLIB:           ON
--  - LIBOPENCOR_PYTHON_BINDINGS:         OFF
--  - LIBOPENCOR_PYTHON_UNIT_TESTING:     OFF
--  - LIBOPENCOR_SHARED_LIBS:             ON
--  - LIBOPENCOR_TARGET_ARCHITECTURE:     ARM
--  - LIBOPENCOR_UNIT_TESTING:            ON
--  - LIBOPENCOR_WARNINGS_AS_ERRORS:      ON
-- Useful targets:
--  - check_code_formatting
--  - documentation
--  - format_code
--  - install
--  - javascript_check_code_formatting
--  - javascript_format_code
--  - python_check_code_formatting
--  - python_format_code
--  - uninstall
--  - unit_testing

Note: like libCellML, libOpenCOR uses options such as UNIT_TESTING but then internally uses LIBOPENCOR_UNIT_TESTING.

@agarny agarny added the Infrastructure Building, hosting, testing, etc. label Aug 3, 2023
@nickerso
Copy link
Contributor

nickerso commented Aug 3, 2023

see also #1072, probably similar work to resolve.

@agarny
Copy link
Contributor Author

agarny commented Aug 3, 2023

Oops, indeed! Well, keeping this one as it also includes the summary of options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Building, hosting, testing, etc.
Projects
None yet
Development

No branches or pull requests

2 participants