diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake index 835457106..33b4750fd 100644 --- a/CMakeModules/OsgMacroUtils.cmake +++ b/CMakeModules/OsgMacroUtils.cmake @@ -282,12 +282,7 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME) ADD_LIBRARY(${TARGET_TARGETNAME} STATIC ${TARGET_SRC} ${TARGET_H}) ENDIF(DYNAMIC_OPENSCENEGRAPH) - #not sure if needed, but for plugins only Msvc need the d suffix - IF(NOT MSVC) - IF(NOT UNIX) - SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_POSTFIX "") - ENDIF(NOT UNIX) - ELSE(NOT MSVC) + IF(MSVC) IF(NOT CMAKE24) SET_OUTPUT_DIR_PROPERTY_260(${TARGET_TARGETNAME} "${OSG_PLUGINS}") # Sets the ouput to be /osgPlugin-X.X.X ; also ensures the /Debug /Release are removed ELSE(NOT CMAKE24) @@ -316,7 +311,7 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME) ENDIF(OSG_MSVC_VERSIONED_DLL) ENDIF(NOT CMAKE24) - ENDIF(NOT MSVC) + ENDIF(MSVC) SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}") SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES FOLDER "Plugins")