[CMake] How the heck does one set options?
dank at kegel.com
Thu Nov 3 19:13:37 EDT 2011
On Thu, Nov 3, 2011 at 2:44 PM, Michael Hertling <mhertling at online.de> wrote:
> However, variables preset with OPTION() are usually
> intended to be at the user's disposal - otherwise, they wouldn't be
> options - so a project should definitely pass through without errors
> regardless to which values these variable are set at first. In other
> words, it shouldn't be necessary to preset gtest_force_shared_crt to
> ON for the project to succeed.
Google Test's CMakeLists.txt is broken in that regard, I think.
I'm just working around the damage.
More information about the CMake