Skip to content
Snippets Groups Projects
Commit c457608d authored by Alexander Turenko's avatar Alexander Turenko Committed by Vladimir Davydov
Browse files

cmake: eliminate warning about source properties

The GENERATED and HEADER_FILE_ONLY source file properties should be
followed by a boolean value. CMake 3.20+ warns if it is not so, see [1].

It seems, the module.h properties do not actually change anything
visible in our case.

[1]: https://cmake.org/cmake/help/latest/policy/CMP0118.html

NO_DOC=pure code health patch, no visible changes
NO_TEST=pure code health patch, no visible changes
NO_CHANGELOG=pure code health patch, no visible changes
parent 5c1bc3da
No related branches found
No related tags found
No related merge requests found
......@@ -41,4 +41,5 @@ function(rebuild_module_api)
add_custom_target(api ALL DEPENDS ${dstfile})
install(FILES ${dstfile} DESTINATION ${MODULE_INCLUDEDIR})
endfunction()
set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/module.h" PROPERTIES GENERATED HEADER_FILE_ONLY)
set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/module.h"
PROPERTIES GENERATED TRUE HEADER_FILE_ONLY TRUE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment