From 89afd0ce62b03bd344bdc2f6b1fabfb49c007676 Mon Sep 17 00:00:00 2001 From: Shaopeng Jia Date: Tue, 26 Apr 2011 07:33:13 +0000 Subject: [PATCH] C++: Modify CMakeLists to fix issue 28. --- cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 1f92ecf19..0b9487849 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -31,7 +31,7 @@ endfunction () function (find_required_library NAME HEADER LIBRARY DESCRIPTION) # Check the header. find_path (${NAME}_INCLUDE_DIR ${HEADER}) - set (INCLUDE_DIR ${NAME}_INCLUDE_DIR) + set (INCLUDE_DIR ${${NAME}_INCLUDE_DIR}) if (${INCLUDE_DIR} STREQUAL "${INCLUDE_DIR}-NOTFOUND") print_error (${DESCRIPTION} ${HEADER})