Project

General

Profile

Bug #1518

CMake reports false positive errors on image file copy to build folder

Added by Oliver Maurhart 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
18.10.2018
Due date:
% Done:

0%

Estimated time:

Description

we do use image files for testing. In order to test some of our programmes, we need these binary files in the test folder.

Currently, an image is copied in test/unit/utility/CMakeLists.txt:

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zip/test.jpg ${CMAKE_CURRENT_BINARY_DIR}/zip/test.jpg @ONLY)

When running a recent version of CMake, we encounter these error messages:

CMake Warning (dev) at test/unit/utility/CMakeLists.txt:13 (configure_file):
  Policy CMP0053 is not set: Simplify variable reference and escape sequence
  evaluation.  Run "cmake --help-policy CMP0053" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  For input:

    '����
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at test/unit/utility/CMakeLists.txt:13 (configure_file):
  Policy CMP0053 is not set: Simplify variable reference and escape sequence
  evaluation.  Run "cmake --help-policy CMP0053" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  For input:

    '▒▒%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz���������������������������������������������������������������������������
This warning is for project developers.  Use -Wno-dev to suppress it.
...

Get CMake to copy the binary file as-is to the testing destination folder.

History

#1 Updated by Oliver Maurhart about 2 months ago

  • Status changed from Assigned to Closed
  • Target version changed from v9.9999.8 to v9.9999.9

Fixed in e01fea2f.

Also available in: Atom PDF