Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e60af7cc0 | ||
|
|
a7519c9e95 |
+3
-3
@@ -110,9 +110,6 @@ endif (MSVC AND MSVC_3RDPARTY_ROOT)
|
|||||||
find_package(Boost REQUIRED)
|
find_package(Boost REQUIRED)
|
||||||
set (BOOST_CXX_FLAGS "-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION")
|
set (BOOST_CXX_FLAGS "-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION")
|
||||||
|
|
||||||
find_package(ZLIB REQUIRED)
|
|
||||||
find_package(Threads REQUIRED)
|
|
||||||
|
|
||||||
if(SIMGEAR_HEADLESS)
|
if(SIMGEAR_HEADLESS)
|
||||||
message(STATUS "SimGear mode: HEADLESS")
|
message(STATUS "SimGear mode: HEADLESS")
|
||||||
else()
|
else()
|
||||||
@@ -148,6 +145,9 @@ else()
|
|||||||
message(STATUS "Subversion client support: DISABLED")
|
message(STATUS "Subversion client support: DISABLED")
|
||||||
endif(ENABLE_LIBSVN)
|
endif(ENABLE_LIBSVN)
|
||||||
|
|
||||||
|
find_package(ZLIB REQUIRED)
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
check_include_file(sys/time.h HAVE_SYS_TIME_H)
|
check_include_file(sys/time.h HAVE_SYS_TIME_H)
|
||||||
check_include_file(sys/timeb.h HAVE_SYS_TIMEB_H)
|
check_include_file(sys/timeb.h HAVE_SYS_TIMEB_H)
|
||||||
check_include_file(unistd.h HAVE_UNISTD_H)
|
check_include_file(unistd.h HAVE_UNISTD_H)
|
||||||
|
|||||||
@@ -16,14 +16,18 @@ macro(find_static_component comp libs)
|
|||||||
string(TOUPPER "${comp}" compLibBase)
|
string(TOUPPER "${comp}" compLibBase)
|
||||||
set( compLibName ${compLibBase}_LIBRARY )
|
set( compLibName ${compLibBase}_LIBRARY )
|
||||||
|
|
||||||
|
# NO_DEFAULT_PATH is important on Mac - we need to ensure subversion
|
||||||
|
# libraires in dist/ or Macports are picked over the Apple version
|
||||||
|
# in /usr, since that's what we will ship.
|
||||||
FIND_LIBRARY(${compLibName}
|
FIND_LIBRARY(${compLibName}
|
||||||
|
NO_DEFAULT_PATH
|
||||||
NAMES ${compLib}
|
NAMES ${compLib}
|
||||||
HINTS $ENV{PLIBDIR}
|
HINTS $ENV{LIBSVN_DIR} ${CMAKE_INSTALL_PREFIX}
|
||||||
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
|
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
|
||||||
PATHS
|
PATHS
|
||||||
|
/opt/local
|
||||||
/usr/local
|
/usr/local
|
||||||
/usr
|
/usr
|
||||||
/opt
|
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND ${libs} ${${compLibName}})
|
list(APPEND ${libs} ${${compLibName}})
|
||||||
@@ -49,13 +53,14 @@ endif(HAVE_APR_CONFIG)
|
|||||||
|
|
||||||
if(HAVE_APR_CONFIG OR MSVC)
|
if(HAVE_APR_CONFIG OR MSVC)
|
||||||
find_path(LIBSVN_INCLUDE_DIR svn_client.h
|
find_path(LIBSVN_INCLUDE_DIR svn_client.h
|
||||||
|
NO_DEFAULT_PATH
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{LIBSVN_DIR}
|
$ENV{LIBSVN_DIR} ${CMAKE_INSTALL_PREFIX}
|
||||||
PATH_SUFFIXES include/subversion-1
|
PATH_SUFFIXES include/subversion-1
|
||||||
PATHS
|
PATHS
|
||||||
|
/opt/local
|
||||||
/usr/local
|
/usr/local
|
||||||
/usr
|
/usr
|
||||||
/opt
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LIBSVN_LIBRARIES "")
|
set(LIBSVN_LIBRARIES "")
|
||||||
|
|||||||
@@ -59,12 +59,7 @@ if(SIMGEAR_SHARED)
|
|||||||
|
|
||||||
if(LIBSVN_FOUND)
|
if(LIBSVN_FOUND)
|
||||||
add_definitions(${APR_CFLAGS})
|
add_definitions(${APR_CFLAGS})
|
||||||
|
include_directories(${LIBSVN_INCLUDE_DIR})
|
||||||
IF(APPLE)
|
|
||||||
set_property(SOURCE scene/tsync/terrasync.cxx PROPERTY COMPILE_FLAGS "-iwithsysroot ${LIBSVN_INCLUDE_DIR}")
|
|
||||||
ELSE()
|
|
||||||
include_directories(${LIBSVN_INCLUDE_DIR})
|
|
||||||
ENDIF(APPLE)
|
|
||||||
target_link_libraries(SimGearCore ${LIBSVN_LIBRARIES})
|
target_link_libraries(SimGearCore ${LIBSVN_LIBRARIES})
|
||||||
endif(LIBSVN_FOUND)
|
endif(LIBSVN_FOUND)
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public:
|
|||||||
if (_elements.size() < num_components)
|
if (_elements.size() < num_components)
|
||||||
throw sg_exception();
|
throw sg_exception();
|
||||||
for (int i = 0; i < num_components; ++i)
|
for (int i = 0; i < num_components; ++i)
|
||||||
result[i] = _elements[i]->getValue<double>();
|
result[i] = _elements[i]->template getValue<double>();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
void set(const T& val)
|
void set(const T& val)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public:
|
|||||||
// conversion operators
|
// conversion operators
|
||||||
operator T () const
|
operator T () const
|
||||||
{
|
{
|
||||||
return getOrThrow()->getValue<T>();
|
return getOrThrow()->template getValue<T>();
|
||||||
}
|
}
|
||||||
|
|
||||||
T operator=(const T& aValue)
|
T operator=(const T& aValue)
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ void findAttr(const effect::EffectPropertyMap<T>& pMap,
|
|||||||
{
|
{
|
||||||
using namespace effect;
|
using namespace effect;
|
||||||
typename EffectPropertyMap<T>::BMap::iterator itr
|
typename EffectPropertyMap<T>::BMap::iterator itr
|
||||||
= pMap._map.get<from>().find(name);
|
= pMap._map.template get<from>().find(name);
|
||||||
if (itr == pMap._map.end()) {
|
if (itr == pMap._map.end()) {
|
||||||
throw effect::BuilderException(string("findAttr: could not find attribute ")
|
throw effect::BuilderException(string("findAttr: could not find attribute ")
|
||||||
+ string(name));
|
+ string(name));
|
||||||
@@ -233,7 +233,7 @@ const T* findAttr(const effect::EffectPropertyMap<T>& pMap,
|
|||||||
{
|
{
|
||||||
using namespace effect;
|
using namespace effect;
|
||||||
typename EffectPropertyMap<T>::BMap::iterator itr
|
typename EffectPropertyMap<T>::BMap::iterator itr
|
||||||
= pMap._map.get<from>().find(name);
|
= pMap._map.template get<from>().find(name);
|
||||||
if (itr == pMap._map.end())
|
if (itr == pMap._map.end())
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
@@ -267,8 +267,8 @@ std::string findName(const effect::EffectPropertyMap<T>& pMap, T value)
|
|||||||
using namespace effect;
|
using namespace effect;
|
||||||
std::string result;
|
std::string result;
|
||||||
typename EffectPropertyMap<T>::BMap::template index_iterator<to>::type itr
|
typename EffectPropertyMap<T>::BMap::template index_iterator<to>::type itr
|
||||||
= pMap._map.get<to>().find(value);
|
= pMap._map.template get<to>().find(value);
|
||||||
if (itr != pMap._map.get<to>().end())
|
if (itr != pMap._map.template get<to>().end())
|
||||||
result = itr->first;
|
result = itr->first;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,13 +10,7 @@ set(SOURCES
|
|||||||
|
|
||||||
if(LIBSVN_FOUND)
|
if(LIBSVN_FOUND)
|
||||||
add_definitions(${APR_CFLAGS})
|
add_definitions(${APR_CFLAGS})
|
||||||
|
include_directories(${LIBSVN_INCLUDE_DIR})
|
||||||
IF(APPLE)
|
|
||||||
set_property(SOURCE terrasync.cxx PROPERTY COMPILE_FLAGS "-iwithsysroot ${LIBSVN_INCLUDE_DIR}")
|
|
||||||
ELSE()
|
|
||||||
include_directories(${LIBSVN_INCLUDE_DIR})
|
|
||||||
ENDIF(APPLE)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
simgear_component(tsync scene/tsync "${SOURCES}" "${HEADERS}")
|
simgear_component(tsync scene/tsync "${SOURCES}" "${HEADERS}")
|
||||||
|
|||||||
Reference in New Issue
Block a user