summaryrefslogtreecommitdiff
path: root/louloulibs/cmake/Modules/FindICONV.cmake
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-03-12 16:51:19 +0100
committerlouiz’ <louiz@louiz.org>2017-03-12 16:51:19 +0100
commita6f6e36594979a83ad16b3c4de350ed95e79daf3 (patch)
tree3c54529585011ebd3696c5fa7f60be541f96bcac /louloulibs/cmake/Modules/FindICONV.cmake
parent4d42dddf465f22af795456056b64863e19f16e8e (diff)
downloadbiboumi-a6f6e36594979a83ad16b3c4de350ed95e79daf3.tar.gz
biboumi-a6f6e36594979a83ad16b3c4de350ed95e79daf3.tar.bz2
biboumi-a6f6e36594979a83ad16b3c4de350ed95e79daf3.tar.xz
biboumi-a6f6e36594979a83ad16b3c4de350ed95e79daf3.zip
cmake: Improve the usage of PARENT_SCOPE
Diffstat (limited to 'louloulibs/cmake/Modules/FindICONV.cmake')
-rw-r--r--louloulibs/cmake/Modules/FindICONV.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/louloulibs/cmake/Modules/FindICONV.cmake b/louloulibs/cmake/Modules/FindICONV.cmake
index 7ca173f..9e5bde6 100644
--- a/louloulibs/cmake/Modules/FindICONV.cmake
+++ b/louloulibs/cmake/Modules/FindICONV.cmake
@@ -52,9 +52,10 @@ if(ICONV_FOUND)
return 0;}"
ICONV_SECOND_ARGUMENT_IS_CONST)
-# Compatibility for all the ways of writing these variables
- set(ICONV_LIBRARY ${ICONV_LIBRARIES})
- set(ICONV_INCLUDE_DIR ${ICONV_INCLUDE_DIRS})
+ # Compatibility for all the ways of writing these variables
+ set(ICONV_LIBRARY ${ICONV_LIBRARIES} PARENT_SCOPE)
+ set(ICONV_INCLUDE_DIR ${ICONV_INCLUDE_DIRS} PARENT_SCOPE)
+ set(ICONV_FOUND ${ICONV_FOUND} PARENT_SCOPE)
endif()
-mark_as_advanced(ICONV_INCLUDE_DIRS ICONV_LIBRARIES ICONV_SECOND_ARGUMENT_IS_CONST) \ No newline at end of file
+mark_as_advanced(ICONV_INCLUDE_DIRS ICONV_LIBRARIES ICONV_SECOND_ARGUMENT_IS_CONST)