summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK2.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-08 13:59:47 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2014-09-11 19:23:24 (GMT)
commit2d97178b30211b1984a17c82edb313fcddff7bc6 (patch)
treee5a383549fa037e6b2793435943c55d9f47a6645 /Modules/FindGTK2.cmake
parent0b12815dc2feeb328a86b77328d13a328368d38b (diff)
downloadCMake-2d97178b30211b1984a17c82edb313fcddff7bc6.zip
CMake-2d97178b30211b1984a17c82edb313fcddff7bc6.tar.gz
CMake-2d97178b30211b1984a17c82edb313fcddff7bc6.tar.bz2
FindGTK2: Avoid depending on if() to dereference a quoted variable
Explicitly dereference GTK2_${_var}CONFIG_INCLUDE_DIR and GTK2_${_var}_INCLUDE_DIR when comparing their values.
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r--Modules/FindGTK2.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 67dc0eb..72bb8eb 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -527,7 +527,7 @@ function(_GTK2_ADD_TARGET _var)
set_property(TARGET GTK2::${_basename} APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${GTK2_${_var}_INCLUDE_DIR}")
endif()
- if(GTK2_${_var}CONFIG_INCLUDE_DIR AND NOT "${GTK2_${_var}CONFIG_INCLUDE_DIR}" STREQUAL "GTK2_${_var}_INCLUDE_DIR")
+ if(GTK2_${_var}CONFIG_INCLUDE_DIR AND NOT "x${GTK2_${_var}CONFIG_INCLUDE_DIR}" STREQUAL "x${GTK2_${_var}_INCLUDE_DIR}")
set_property(TARGET GTK2::${_basename} APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${GTK2_${_var}CONFIG_INCLUDE_DIR}")
endif()