]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix warnings for CMake Policy CMP0054 100/head
authorJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Wed, 21 Jan 2015 07:09:53 +0000 (02:09 -0500)
committerJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Wed, 21 Jan 2015 07:09:53 +0000 (02:09 -0500)
commite636e75ced44763c4d76604a66e8bfc877edea09
treed33d7a4f053b58491d832a8d89b7db53531fbd67
parentf93e32f4a2e4b67b05d9042346439c169c03a39d
Fix warnings for CMake Policy CMP0054

This commit ensures the variables CMAKE_C_COMPILER_ID and
CMAKE_C_COMPILER_ID will always be interpreted by removing
the double quotes.

It fixes warnings like this one:

CMake Warning (dev) at CMakeLists.txt:91 (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 "CMAKE_C_COMPILER_ID" will no longer be dereferenced
  when the policy is set to NEW.  Since the policy is not set the OLD
  behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.
CMakeLists.txt