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

set_property could not find CACHE variable CMAKE_BUILD_TYPE. #68

Open
mgood7123 opened this issue Aug 29, 2021 · 1 comment
Open

set_property could not find CACHE variable CMAKE_BUILD_TYPE. #68

mgood7123 opened this issue Aug 29, 2021 · 1 comment

Comments

@mgood7123
Copy link

mgood7123 commented Aug 29, 2021

this happens when adding as a external project in a multi-config generator

the following fixes this

if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Release CACHE STRING "" FORCE)
    message(STATUS "CMAKE_BUILD_TYPE is not specified, default to Release. Note that this is only relevant for single-configuration generators (such as Makefile Generators and Ninja).")
endif()
@mgood7123
Copy link
Author

applied in #69

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

No branches or pull requests

1 participant