qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1561775 - /qpid/trunk/qpid/cpp/src/CMakeLists.txt
Date Mon, 27 Jan 2014 18:31:34 GMT
Author: astitcher
Date: Mon Jan 27 18:31:34 2014
New Revision: 1561775

URL: http://svn.apache.org/r1561775
Log:
QPID-5516: Only enable Dtrace style probes on Linux

Modified:
    qpid/trunk/qpid/cpp/src/CMakeLists.txt

Modified: qpid/trunk/qpid/cpp/src/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/CMakeLists.txt?rev=1561775&r1=1561774&r2=1561775&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/src/CMakeLists.txt Mon Jan 27 18:31:34 2014
@@ -391,14 +391,19 @@ if (NOT CMAKE_SYSTEM_NAME STREQUAL Windo
   set (uuid_LIB "uuid")
 
   # Check for header file for dtrace static probes
-  check_include_files(sys/sdt.h HAVE_SYS_SDT_H)
-  if (HAVE_SYS_SDT_H)
-  set(probes_default ON)
-  endif (HAVE_SYS_SDT_H)
-  option(BUILD_PROBES "Build with DTrace/systemtap static probes" ${probes_default})
-  if (NOT BUILD_PROBES)
-  set (HAVE_SYS_SDT_H 0)
-  endif (NOT BUILD_PROBES)
+  check_include_files(sys/sdt.h HAVE_SDT)
+  if (HAVE_SDT)
+    # Only enable by default on Linux
+    if (CMAKE_SYSTEM_NAME STREQUAL Linux)
+    set(probes_default ON)
+    endif (CMAKE_SYSTEM_NAME STREQUAL Linux)
+    option(BUILD_PROBES "Build with DTrace/systemtap static probes" "${probes_default}")
+  endif (HAVE_SDT)
+  if (BUILD_PROBES)
+    set (HAVE_SYS_SDT_H 1)
+  else (HAVE_SDT)
+    set (HAVE_SYS_SDT_H 0)
+  endif (BUILD_PROBES)
 
   # Check for poll/epoll header files
   check_include_files(sys/poll.h HAVE_POLL)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message