mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Honor CMake policy CMP0058
CMake policy CMP0058, introduced in CMake 3.3, requires that all intermediate files created during the build process will be declared as an output or byproduct of a target. See "cmake --help-policy CMP0058" for details. Per this policy, CMake was giving a warning about some files generated during configuration (e.g. with configure_file) because they were files in the build directory with no apparent target command. This is not an issue since the configure will ensure that the file is always there before the build starts. Thus, we declare that we will adhere to the new policy to avoid the warning.
This commit is contained in:
parent
c4dd3cffd5
commit
e4ca73fc05
@ -34,6 +34,7 @@ endif()
|
||||
|
||||
#setup policy rules for CMake 3.3 while we have a minimum required of 2.8.X
|
||||
if(POLICY CMP0063)
|
||||
cmake_policy(SET CMP0058 NEW)#All dependencies on built targets are declared
|
||||
cmake_policy(SET CMP0063 NEW)#Honor visibility properties for all targets
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user