On Windows targets the rt library is not available and somehow we pick it
up. Thus, guard the whole configuration.
Closes #2397
#
# Add rt to the link interface as well, boost/chrono needs it.
#
- FIND_SYSTEM_LIBRARY(rt_LIBRARY NAMES rt)
- MARK_AS_ADVANCED(rt_LIBRARY)
- IF(NOT rt_LIBRARY MATCHES "-NOTFOUND")
- SET(BOOST_LIBRARIES ${rt_LIBRARY})
+ IF(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
+ FIND_SYSTEM_LIBRARY(rt_LIBRARY NAMES rt)
+ MARK_AS_ADVANCED(rt_LIBRARY)
+ IF(NOT rt_LIBRARY MATCHES "-NOTFOUND")
+ SET(BOOST_LIBRARIES ${rt_LIBRARY})
+ ENDIF()
ENDIF()
ENABLE_IF_SUPPORTED(BOOST_CXX_FLAGS "-Wno-unused-local-typedefs")
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams