From Serge Lages, "Here is a new modification to CMake adding an option (OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS) to specify if we want to generate or not the manifest files under VS8 for the plugins and the wrappers. It seems that the manifests are needed if we try to load dynamically a core OSG dll."
This commit is contained in:
parent
1c2726fd07
commit
33e3054fca
@ -26,3 +26,8 @@ IF (BUILD_OSG_WRAPPERS)
|
||||
ADD_SUBDIRECTORY(osgIntrospection)
|
||||
ADD_SUBDIRECTORY(osgWrappers)
|
||||
ENDIF(BUILD_OSG_WRAPPERS)
|
||||
|
||||
IF(MSVC80)
|
||||
OPTION(OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS "Generate or not manifests files under VS8 for dynamically loaded dlls" ON)
|
||||
ENDIF(MSVC80)
|
||||
|
||||
|
@ -14,7 +14,9 @@ ENDIF(NOT MSVC)
|
||||
SET(CMAKE_SHARED_MODULE_PREFIX ${OSG_PLUGIN_PREFIX})
|
||||
|
||||
IF(MSVC80)
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /MANIFEST:NO")
|
||||
IF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /MANIFEST:NO")
|
||||
ENDIF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
|
||||
ENDIF(MSVC80)
|
||||
|
||||
SET(TARGET_DEFAULT_PREFIX "osgdb_")
|
||||
|
@ -5,7 +5,9 @@ SET(LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}/${OSG_PLUGINS}")
|
||||
SET(CMAKE_SHARED_MODULE_PREFIX ${OSG_PLUGIN_PREFIX})
|
||||
|
||||
IF(MSVC80)
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /MANIFEST:NO")
|
||||
IF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /MANIFEST:NO")
|
||||
ENDIF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
|
||||
ENDIF(MSVC80)
|
||||
|
||||
MACRO(ADD_WRAPPER_LIB SUBDIR EXPORTDEF)
|
||||
|
Loading…
Reference in New Issue
Block a user