summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/modules/FindNL.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/FindNL.cmake b/cmake/modules/FindNL.cmake
index 54531ecaa1..f84097e9c1 100644
--- a/cmake/modules/FindNL.cmake
+++ b/cmake/modules/FindNL.cmake
@@ -78,7 +78,9 @@ ELSE (NL_LIBRARIES AND NL_INCLUDE_DIRS )
PATHS
$(SEARCHPATHS)
)
- SET( HAVE_LIBNL1 1 )
+ if ( NL_INCLUDE_DIR )
+ SET( HAVE_LIBNL1 1 )
+ ENDIF ( NL_INCLUDE_DIR )
ENDIF( NL_INCLUDE_DIR )
ENDIF(NL_LIBRARIES AND NL_INCLUDE_DIRS)
# MESSAGE(STATUS "LIB Found: ${NL_LIBRARY}, Suffix: ${NLSUFFIX}\n 1:${HAVE_LIBNL1}, 2:${HAVE_LIBNL2}, 3:${HAVE_LIBNL3}.")