[cmake-developers] File Building issue

Arunava Nag arunavoster at gmail.com
Wed Jun 10 10:11:38 EDT 2015


Hello,
Facing an issue while building in cmake 3.3.0. Need some help.

*cmakelist file code extract*

cmake_minimum_required(VERSION 2.8) project(AMFIO) #Flags for compilers if
("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")   # using Clang
 (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -std=c++11")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")  # using GCC
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wpedantic
-std=c++11") endif() #Debug and profiling settings #SET (CMAKE_BUILD_TYPE
"Debug")


*Error received while configuring in cmake:*
Description:
CMake Warning (dev) at CMakeLists.txt:6 (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 "MSVC" 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.

CMake Warning (dev) at CMakeLists.txt:11 (elseif):
  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 "MSVC" 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.

Thank You

*Regards,*
*Arunava Nag*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150610/c60620dd/attachment.html>


More information about the cmake-developers mailing list