mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 00:26:17 +00:00
Fixed: Compilation under Mac OS X 10.9
This commit is contained in:
parent
c04a187aa7
commit
148149be9f
3 changed files with 8 additions and 8 deletions
|
@ -786,11 +786,15 @@ MACRO(NL_SETUP_BUILD)
|
|||
|
||||
ADD_PLATFORM_FLAGS("${XARCH}-isysroot${CMAKE_IOS_SIMULATOR_SYSROOT}")
|
||||
ADD_PLATFORM_FLAGS("${XARCH}-mios-simulator-version-min=${IOS_VERSION}")
|
||||
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} ${XARCH}-Wl,-macosx_version_min,${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
IF(CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} ${XARCH}-Wl,-macosx_version_min,${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
ENDIF(CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
ENDIF(CMAKE_IOS_SIMULATOR_SYSROOT AND TARGET_X86)
|
||||
ELSE(IOS)
|
||||
# Always force -mmacosx-version-min to override environement variable
|
||||
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-macosx_version_min,${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
IF(CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-macosx_version_min,${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
ENDIF(CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
ENDIF(IOS)
|
||||
|
||||
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-headerpad_max_install_names")
|
||||
|
|
|
@ -316,14 +316,14 @@ public:
|
|||
// output the oldest part of the buffer first
|
||||
for (uint i=_Mean.getCurrentFrame(); i<_Mean.getNumFrame(); ++i)
|
||||
{
|
||||
str << _Mean.getLastFrames()[i];
|
||||
str << (T)_Mean.getLastFrames()[i];
|
||||
if (i < _Mean.getNumFrame()-1 || _Mean.getCurrentFrame() != 0)
|
||||
str << ",";
|
||||
}
|
||||
// then output the newest part
|
||||
for (uint i = 0; i < _Mean.getCurrentFrame(); i++)
|
||||
{
|
||||
str << _Mean.getLastFrames()[i];
|
||||
str << (T)_Mean.getLastFrames()[i];
|
||||
if (i < _Mean.getCurrentFrame()-1)
|
||||
str << ",";
|
||||
}
|
||||
|
|
|
@ -47,10 +47,6 @@ SOURCE_GROUP("r2" FILES ${SRC_R2})
|
|||
|
||||
# on Mac, create a .App Bundle
|
||||
if(APPLE)
|
||||
IF(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.6")
|
||||
ENDIF(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
|
||||
SET(MACOSX_BUNDLE_INFO_STRING "Ryzom Core Client")
|
||||
SET(MACOSX_BUNDLE_ICON_FILE "ryzom.icns")
|
||||
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "")
|
||||
|
|
Loading…
Reference in a new issue