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

build: Better cmake verbose behavior #4037

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Oct 29, 2023

When we bumped to cmake 3.15 minimum for 2.5, we changed lots of constructs like this:

if (VERBOSE)
    message (STATUS "blah")
endif ()

to this:

message (VERBOSE "blah")

but I didn't realize that this was not enough, and to do it right requires CMAKE_MESSAGE_LOG_LEVEL. So even when VERBOSE=ON, we weren't actually getting all the verbose messages. Here, we fix it.

Also, when verbose, print the list of C++ compile features that cmake discovers.

When we bumped to cmake 3.15 minimum for 2.5, we changed lots of
constructs like this:

    if (VERBOSE)
        message (STATUS "blah")
    endif ()

to this:

    message (VERBOSE "blah")

but I didn't realize that this was not enough, and to do it right
requires CMAKE_MESSAGE_LOG_LEVEL. So even when VERBOSE=ON, we weren't
actually getting all the verbose messages. Here, we fix it.

Also, when verbose, print the list of C++ compile features that cmake
discovers.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz
Copy link
Collaborator Author

lgritz commented Nov 16, 2023

No objections -> merging

@lgritz lgritz merged commit 804e15c into AcademySoftwareFoundation:master Nov 16, 2023
26 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Nov 16, 2023
When we bumped to cmake 3.15 minimum for 2.5, we changed lots of
constructs like this:

    if (VERBOSE)
        message (STATUS "blah")
    endif ()

to this:

    message (VERBOSE "blah")

but I didn't realize that this was not enough, and to do it right
requires CMAKE_MESSAGE_LOG_LEVEL. So even when VERBOSE=ON, we weren't
actually getting all the verbose messages. Here, we fix it.

Also, when verbose, print the list of C++ compile features that cmake
discovers.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz deleted the lg-verbose branch November 18, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant