diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-20 14:15:48 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-20 14:15:48 -0500 |
commit | 1b83c684fbb88b40a4b3b7114a9116b0e582bc67 (patch) | |
tree | e9bea03c57d810238cb430427ca35a18de514755 /CMakeLists.txt | |
parent | c2dde97994f3bf507cbb1f211e60f84ac46bb0c0 (diff) | |
download | fork-ledger-1b83c684fbb88b40a4b3b7114a9116b0e582bc67.tar.gz fork-ledger-1b83c684fbb88b40a4b3b7114a9116b0e582bc67.tar.bz2 fork-ledger-1b83c684fbb88b40a4b3b7114a9116b0e582bc67.zip |
More resiliency fixes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bb85dcc9..046e9b05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,7 +174,7 @@ cmake_pop_check_state() include_directories(${CMAKE_INCLUDE_PATH}) macro(find_opt_library_and_header _header_var _header _lib_var _lib _have_var) - if(${_header_var}) + if(${_have_var}) find_path(${_header_var} ${_header}) if(NOT ${_header_var}) set(${_have_var} 0) @@ -184,8 +184,11 @@ macro(find_opt_library_and_header _header_var _header _lib_var _lib _have_var) set(${_have_var} 0) else() include_directories(SYSTEM "${${_header_var}}") + set(${_have_var} 1) endif() endif() + else() + set(${_have_var} 0) endif() endmacro(find_opt_library_and_header _header_var _header _lib_var _lib _have_var) |