cmake: Improve the usage of PARENT_SCOPE

This commit is contained in:
louiz’
2017-03-12 16:51:19 +01:00
parent 4d42dddf46
commit a6f6e36594
9 changed files with 62 additions and 78 deletions
+3 -2
View File
@@ -29,8 +29,9 @@ if(NOT UDNS_FOUND)
# Compatibility for all the ways of writing these variables
if(UDNS_FOUND)
set(UDNS_INCLUDE_DIR ${UDNS_INCLUDE_DIRS})
set(UDNS_LIBRARY ${UDNS_LIBRARIES})
set(UDNS_INCLUDE_DIR ${UDNS_INCLUDE_DIRS} PARENT_SCOPE)
set(UDNS_LIBRARY ${UDNS_LIBRARIES} PARENT_SCOPE)
set(UDNS_FOUND ${UDNS_FOUND} PARENT_SCOPE)
endif()
endif()