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:
parent
9067731a96
commit
dcbca4b90b
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue