mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-17 19:41:28 +00:00
Revert "Use debug dlls when debugging in vs2010"
This reverts commit ebe131b326
.
This commit is contained in:
parent
7610a330ef
commit
2a11a28e81
2 changed files with 4 additions and 8 deletions
|
@ -259,11 +259,11 @@ endif (APPLE)
|
||||||
|
|
||||||
|
|
||||||
# Set up Ogre plugin folder & debug suffix
|
# Set up Ogre plugin folder & debug suffix
|
||||||
if (APPLE)
|
# Ogre on OS X doesn't use "_d" suffix (see Ogre's CMakeLists.txt)
|
||||||
# Ogre on OS X doesn't use "_d" suffix (see Ogre's CMakeLists.txt)
|
if (DEFINED CMAKE_BUILD_TYPE AND CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT APPLE)
|
||||||
add_definitions(-DOGRE_PLUGIN_DEBUG_SUFFIX="")
|
|
||||||
else ()
|
|
||||||
add_definitions(-DOGRE_PLUGIN_DEBUG_SUFFIX="_d")
|
add_definitions(-DOGRE_PLUGIN_DEBUG_SUFFIX="_d")
|
||||||
|
else()
|
||||||
|
add_definitions(-DOGRE_PLUGIN_DEBUG_SUFFIX="")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_definitions(-DOGRE_PLUGIN_DIR_REL="${OGRE_PLUGIN_DIR_REL}")
|
add_definitions(-DOGRE_PLUGIN_DIR_REL="${OGRE_PLUGIN_DIR_REL}")
|
||||||
|
|
|
@ -6,11 +6,7 @@
|
||||||
namespace Files {
|
namespace Files {
|
||||||
|
|
||||||
bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
||||||
// Append plugin suffix if debugging.
|
|
||||||
#if defined(DEBUG) || defined(_DEBUG)
|
|
||||||
pluginName = pluginName + OGRE_PLUGIN_DEBUG_SUFFIX;
|
pluginName = pluginName + OGRE_PLUGIN_DEBUG_SUFFIX;
|
||||||
#endif
|
|
||||||
|
|
||||||
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
||||||
std::ostringstream verStream;
|
std::ostringstream verStream;
|
||||||
verStream << "." << OGRE_VERSION_MAJOR << "." << OGRE_VERSION_MINOR << "." << OGRE_VERSION_PATCH;
|
verStream << "." << OGRE_VERSION_MAJOR << "." << OGRE_VERSION_MINOR << "." << OGRE_VERSION_PATCH;
|
||||||
|
|
Loading…
Reference in a new issue