CMakeLists.txt: Set CMake policy CMP0054 to NEW.
authorUwe Hermann <uwe@hermann-uwe.de>
Sun, 1 Apr 2018 17:26:16 +0000 (19:26 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sun, 1 Apr 2018 17:26:16 +0000 (19:26 +0200)
commit2944860fee473b05064c84d3308dffa89c4b0760
tree5c894546c6a99a9192125a5257384867e85a52bd
parent1c4ec8d0157dfdd9d567e0d183e3813c330e954a
CMakeLists.txt: Set CMake policy CMP0054 to NEW.

This prevents the following warnings upon a second cmake run:

  CMake Warning (dev) at /usr/share/cmake-3.10/Modules/CMakePushCheckState.cmake:65 (if):
    Policy CMP0054 is not set: Only interpret if() arguments as variables or
    keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
    details.  Use the cmake_policy command to set the policy and suppress this
    warning.
    Quoted variables like "HAVE_CXX_ATOMICS_WITHOUT_LIB" will no longer be
    dereferenced when the policy is set to NEW.  Since the policy is not set
    the OLD behavior will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:123 (cmake_push_check_state)
    CMakeLists.txt:139 (check_working_cxx_atomics)
  This warning is for project developers.  Use -Wno-dev to suppress it.
CMakeLists.txt