Commits

Anonymous committed 8316b1a

Added the debug flag to trigger -DPTHREAD_RWLOCK_FCFS_DEBUG=1 for the traces.

  • Participants
  • Parent commits 1229945

Comments (0)

Files changed (1)

pthreads/CMakeLists.txt

 INCLUDE( "${CMAKE_CURRENT_SOURCE_DIR}/Common.cmake" )
 
+SET(DEBUG "" CACHE BOOL "Add debugging information")
 # This is the equivalent to perform a "make dist"/"make distdir" etc.
 SET(CPACK_PACKAGE_NAME "pthread_rwlock_fcfs")
 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Readers/Writers Lock")
     ADD_DEFINITIONS(${CFLAG_TO_CHECK})
 ENDIF (${CFLAG_GCC_ALL_WARNS})
 
+IF (${DEBUG})
+    ADD_DEFINITIONS("-DPTHREAD_RWLOCK_FCFS_DEBUG=1")
+ENDIF (${DEBUG})
+
 # So it can find config.h
 INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})