From dcbca4b90bd63a2640f38ea30fbe222ab5a74ad5 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Fri, 14 Dec 2018 14:30:56 +0000 Subject: [PATCH] Use if(EXISTS ${OSGDB_LIB} AND NOT IS_DIRECTORY ${OSGDB_LIB}) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b499988c5..933893550 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,7 +259,7 @@ set(USED_OSG_PLUGINS set(OSGPlugins_LIB_DIR "") foreach(OSGDB_LIB ${OSGDB_LIBRARY}) # Skip library type names - if(EXISTS ${OSGDB_LIB}) + if(EXISTS ${OSGDB_LIB} AND NOT IS_DIRECTORY ${OSGDB_LIB}) get_filename_component(OSG_LIB_DIR ${OSGDB_LIB} DIRECTORY) list(APPEND OSGPlugins_LIB_DIR "${OSG_LIB_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}") endif()