From 1bab373c4007f96b71d08944f208015c402b4e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 19 Sep 2017 23:36:41 +0200 Subject: [PATCH] FindHelper.cmake small cleanup - silence Policy CMP0054 warning - _INCLUDE_DIRS ... the '-I' preprocessor flags (w/o the '-I') - coding style --- cmake/FindHelper.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/FindHelper.cmake b/cmake/FindHelper.cmake index b84b0a2a4..457a7a371 100644 --- a/cmake/FindHelper.cmake +++ b/cmake/FindHelper.cmake @@ -40,12 +40,12 @@ macro(FIND_HELPER prefix pkg_name header lib) ENV ${prefix}_PATH ) include(FindPackageHandleStandardArgs) - if (NOT "${prefix}_INCLUDE_DIRS") - set(${prefix}_INCLUDE_DIRS "-I/usr/include") + if ("${${prefix}_INCLUDE_DIRS}" STREQUAL "") + set(${prefix}_INCLUDE_DIRS "/usr/include") endif () FIND_PACKAGE_HANDLE_STANDARD_ARGS(${prefix} DEFAULT_MSG ${prefix}_LIBRARIES ${prefix}_INCLUDE_DIRS) if(NOT "${PC_${prefix}_INCLUDE_DIRS}" STREQUAL "") - SET(${prefix}_INCLUDE_DIRS "${${prefix}_INCLUDE_DIRS};${PC_${prefix}_INCLUDE_DIRS}") + set(${prefix}_INCLUDE_DIRS "${${prefix}_INCLUDE_DIRS};${PC_${prefix}_INCLUDE_DIRS}") endif() endif() endmacro()