1
0
Fork 0

#537 linker issues due to clock_gettime/librt dependencies

Simplify dependency check and make it work for Debian.
This commit is contained in:
ThorstenB 2012-02-24 22:22:14 +01:00
parent f094fa2aa8
commit 572847b4cd

View file

@ -205,13 +205,10 @@ else(SIMGEAR_SHARED)
if(NOT MSVC) if(NOT MSVC)
# basic timing routines on non windows systems, may be also cygwin?! # basic timing routines on non windows systems, may be also cygwin?!
check_function_exists(clock_gettime clock_gettime_in_libc)
if(NOT clock_gettime_in_libc)
check_library_exists(rt clock_gettime "" have_rt) check_library_exists(rt clock_gettime "" have_rt)
if(have_rt) if(have_rt)
list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES rt) list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES rt)
endif(have_rt) endif(have_rt)
endif(NOT clock_gettime_in_libc)
endif(NOT MSVC) endif(NOT MSVC)
endif(SIMGEAR_SHARED) endif(SIMGEAR_SHARED)