Update CMake modules.
Merge commit 'dd2c7e902aa095fd7844329e38bca7cd7c51e6d9' into osx-refactor_sync-mplus Conflicts: cmake/FindWinHID.cmake
This commit is contained in:
@@ -31,7 +31,7 @@ function(_osgbundle_split_debug_versions releasevar debugvar)
|
||||
set(debug)
|
||||
foreach(fn ${ARGN})
|
||||
get_filename_component(name "${fn}" NAME_WE)
|
||||
if(${name} MATCHES "d$")
|
||||
if("${name}" MATCHES "d$")
|
||||
list(APPEND debug "${fn}")
|
||||
else()
|
||||
list(APPEND release "${fn}")
|
||||
@@ -75,9 +75,21 @@ endif()
|
||||
function(install_osg_plugins var)
|
||||
set(INSTALLEDPLUGINS)
|
||||
foreach(plugin ${OSGDB_PLUGINS_RELEASE} ${OSGWRAPPER_PLUGINS_RELEASE})
|
||||
install(FILES "${plugin}" DESTINATION "${OSG_PATH_TO_PLUGINS}")
|
||||
install(FILES "${plugin}"
|
||||
DESTINATION "${OSG_PATH_TO_PLUGINS}"
|
||||
CONFIGURATIONS Release RelWithDebInfo MinSizeRel)
|
||||
get_filename_component(name "${plugin}" NAME)
|
||||
list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
|
||||
endforeach()
|
||||
foreach(plugin ${OSGDB_PLUGINS_DEBUG} ${OSGWRAPPER_PLUGINS_DEBUG})
|
||||
install(FILES
|
||||
"${plugin}"
|
||||
DESTINATION
|
||||
"${OSG_PATH_TO_PLUGINS}"
|
||||
CONFIGURATIONS
|
||||
Debug)
|
||||
#get_filename_component(name "${plugin}" NAME)
|
||||
#list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
|
||||
endforeach()
|
||||
set(${var} ${INSTALLEDPLUGINS} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user