Skip to content

Commit

Permalink
CMake: Fix typo in FindDiaSDK
Browse files Browse the repository at this point in the history
if(EXISTS ...) does not auto expand variables, like other if() commands

Signed-off-by: Devin Nakamura <devinn@ca.ibm.com>
  • Loading branch information
dnakamura committed Aug 28, 2020
1 parent e95ea00 commit 64146b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/FindDiaSDK.cmake
Expand Up @@ -59,7 +59,7 @@ if(NOT DiaSDK_ROOT)
endif()
endif()

if(DIA_COM_DLL_DIR AND EXISTS DIA_COM_DLL_DIR)
if(DIA_COM_DLL_DIR AND EXISTS "${DIA_COM_DLL_DIR}")
# The DLL will live in "X/DIA SDK/lib" or "X/DIA SDK/lib/amd64"
if(DIA_COM_DLL_DIR MATCHES "amd64$")
set(DiaSDK_ROOT "${DIA_COM_DLL_DIR}/../..")
Expand Down

0 comments on commit 64146b0

Please sign in to comment.