mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Use if(EXISTS ${OSGDB_LIB} AND NOT IS_DIRECTORY ${OSGDB_LIB})
This commit is contained in:
parent
9067731a96
commit
dcbca4b90b
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user