CMake: fix add_subdirectory(SwiftShader) when CMAKE_BUILD_TYPE is set in parent project
If parent project sets CMAKE_BUILD_TYPE as a non-cache variable
(e.g. like https://github.com/google/amber does), CMake emits an error
because we're trying to set it as a cache variable.
Bug: b/145758253
Change-Id: Ie169c45dd11674be9e40610f5dd711b8fd5830f8
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43952
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by:
Ben Clayton <bclayton@google.com>
Tested-by:
Antonio Maiorano <amaiorano@google.com>
Showing
Please
register
or
sign in
to comment