diff options
author | Brad King <brad.king@kitware.com> | 2014-09-08 13:59:47 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-09-11 19:23:24 (GMT) |
commit | 2d97178b30211b1984a17c82edb313fcddff7bc6 (patch) | |
tree | e5a383549fa037e6b2793435943c55d9f47a6645 /Modules | |
parent | 0b12815dc2feeb328a86b77328d13a328368d38b (diff) | |
download | CMake-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')
-rw-r--r-- | Modules/FindGTK2.cmake | 2 |
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() |