[Webkit-unassigned] [Bug 179971] [CMake] Values of CMAKE_BUILD_TYPE from toolchain file are ignored

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 23 08:48:19 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=179971

--- Comment #3 from Adrian Perez <aperez at igalia.com> ---
(In reply to Michael Catanzaro from comment #2)
> The code at the top of our toplevel CMakeLists.txt is this:
> 
> if (NOT CMAKE_BUILD_TYPE)
>     message(WARNING "No CMAKE_BUILD_TYPE value specified, defaulting to
> RelWithDebInfo.")
>     set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of
> build." FORCE)
> else ()
>     message(STATUS "The CMake build type is: ${CMAKE_BUILD_TYPE}")
> endif ()
> 
> So... that's fairly straightforward.

It is, indeed! It's puzzling, and I have no idea why CMake is so
bizarre. I suspect that the toolchain file is NOT loaded directly
on startup, but included by some file from “/usrshare/cmake/*”,
and those get pulled in by one of the top-level commands used to
configure.

> Are the other variables in the toolchain file already set before that point?

Will check. Probably not if my hypothesis as outlined above is
correct.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171123/584278b1/attachment.html>


More information about the webkit-unassigned mailing list