Fix handling of rt lib for avtquery.
Change if test for linux, add find_library call.
@@ -226,9 +226,10 @@ ENDIF(VISIT_PYTHON_FILTERS)
#********************************* SERIAL ************************************
ADD_LIBRARY(avtquery_ser ${AVTQUERY_SOURCES})
TARGET_LINK_LIBRARIES(avtquery_ser visitcommon avtmath avtshapelets avtexpressions_ser avtfilters_ser visit_vtk)
-IF(CMAKE_SYSTEM_NAME MATCHES Linux)
- TARGET_LINK_LIBRARIES(avtquery_ser rt)
-ENDIF()
+if(NOT WIN32 AND NOT APPLE)
+ find_library(LIBRT rt)
+ target_link_libraries(avtquery_ser ${LIBRT})
+endif()
IF(VISIT_PYTHON_FILTERS)
TARGET_LINK_LIBRARIES(avtquery_ser avtpythonfilters_ser)
ENDIF(VISIT_PYTHON_FILTERS)
@@ -243,9 +244,9 @@ VISIT_INSTALL_TARGETS(avtquery_ser)
IF(VISIT_PARALLEL)
ADD_PARALLEL_LIBRARY(avtquery_par ${AVTQUERY_SOURCES})
TARGET_LINK_LIBRARIES(avtquery_par visitcommon avtmath avtshapelets avtexpressions_par avtfilters_par visit_vtk)
- IF(CMAKE_SYSTEM_NAME MATCHES Linux)
- TARGET_LINK_LIBRARIES(avtquery_par rt)
- ENDIF()
+ if(NOT WIN32 AND NOT APPLE)
+ target_link_libraries(avtquery_par ${LIBRT})
+ endif()
IF(VISIT_PYTHON_FILTERS)
TARGET_LINK_LIBRARIES(avtquery_par avtpythonfilters_par)
ENDIF(VISIT_PYTHON_FILTERS)
