I've got a CMake project with several subdirectories, like this one:
dir1
subdir11
subdir12
dir2
subdir21
subdir22
Root CMakeLists.txt:
add_subdirectory(dir1)
add_subdirectory(dir2)
CMakeLists in dir1 and dir2 are similar:
add_subdirectory(subdir11)
add_subdirectory(subdir12)
and
add_subdirectory(subdir21)
add_subdirectory(subdir22)
And CMakeLists in subdirs do actual work.
The file dir1/subdir12/CMakeLists.txt
sets the CMP0046
policy to OLD
:
cmake_policy(SET CMP0046 OLD) #silently ignore missing dependencies
My question is - will this setting of CMP0046 propagate to subdir21
and subdir22
?