Page MenuHomePhabricator

CMake warnings about @COPYONLY
Closed, ResolvedPublic

Description

Currently when configuring there are several warnings related to the use of configure_file( ... @COPYONLY) in the following files:

BlueBerry/Documentation/CMakeLists.txt: ${CMAKE_CURRENT_BINARY_DIR}/${BLUEBERRY_DOXYGEN_STYLESHEET} @COPYONLY)
Documentation/CMakeLists.txt: ${CMAKE_CURRENT_BINARY_DIR}/${MITK_DOXYGEN_STYLESHEET} @COPYONLY)
Modules/CppMicroServices/core/test/modules/libRWithAppendedResources/CMakeLists.txt:configure_file(resources/foo.txt ${CMAKE_CURRENT_BINARY_DIR}/resources/foo2.txt @COPYONLY)
Modules/CppMicroServices/core/test/modules/libRWithLinkedResources/CMakeLists.txt:configure_file(resources/foo.txt ${CMAKE_CURRENT_BINARY_DIR}/resources/foo2.txt @COPYONLY)
Modules/CppMicroServices/core/test/modules/libRWithResources/CMakeLists.txt:configure_file(resources/foo.txt ${CMAKE_CURRENT_BINARY_DIR}/resources/foo2.txt @COPYONLY)

Warning text (example):
CMake Warning (dev) at Modules/CppMicroServices/core/test/modules/libRWithLinkedResources/CMakeLists.txt:6 (configure_file):

configure_file called with unknown argument(s):

 @COPYONLY

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

Unless there is a specific reason to keep it like this I will replace it by the correct
COPYONLY

Event Timeline

User goch has pushed new remote branch:

bug-18956-copyonly-related-cmake-warnings

Core modification flag:

Replace all occurences of @COPYONLY in the mentioned files by COPYONLY

[1adc11]: Merge branch 'bug-18956-copyonly-related-cmake-warnings'

Merged commits:

2015-04-14 13:30:09 Caspar Goch [dae24b]
Replace @COPYONLY


2015-04-14 13:29:59 Caspar Goch [e1e8c0]
Replace @COPYONLY in microservices