3 # - Find the DATE system
4 # Finds if the RuleChecker is installed and sets the following variables:
6 # DATE_FOUND = Boolean defining if DATE is installed
9 # Check if DATE is installed and in the path
11 Find_program( DATE_PROGRAM date-config )
15 Message(STATUS "DATE is installed on this system")
16 Execute_process(COMMAND date-config --cflags OUTPUT_VARIABLE DATEFLAGS)
19 Message(STATUS "DATE is not installed on this system")
23 OUTPUT_VARIABLE _uname
24 OUTPUT_STRIP_TRAILING_WHITESPACE)
28 Set(DATEFLAGS "-D${_uname} -DDATE_SYS=${_uname} -Dlong32=\"int\" -Dlong64=\"long long\" -DdatePointer=\"long\"")
31 Set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${DATEFLAGS})