1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Use if(EXISTS ${OSGDB_LIB} AND NOT IS_DIRECTORY ${OSGDB_LIB})

This commit is contained in:
AnyOldName3 2018-12-14 14:30:56 +00:00
parent 9067731a96
commit dcbca4b90b

View file

@ -259,7 +259,7 @@ set(USED_OSG_PLUGINS
set(OSGPlugins_LIB_DIR "") set(OSGPlugins_LIB_DIR "")
foreach(OSGDB_LIB ${OSGDB_LIBRARY}) foreach(OSGDB_LIB ${OSGDB_LIBRARY})
# Skip library type names # 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) get_filename_component(OSG_LIB_DIR ${OSGDB_LIB} DIRECTORY)
list(APPEND OSGPlugins_LIB_DIR "${OSG_LIB_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}") list(APPEND OSGPlugins_LIB_DIR "${OSG_LIB_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}")
endif() endif()