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
12 COMMAND which date-config
13 OUTPUT_VARIABLE DATE_PROGRAM)
17 Message(STATUS "DATE is installed on this system")
18 Execute_process(COMMAND date-config --cflags OUTPUT_VARIABLE DATEFLAGS)
21 Message(STATUS "DATE is not installed on this system")
25 OUTPUT_VARIABLE _uname
26 OUTPUT_STRIP_TRAILING_WHITESPACE)
30 Set(DATEFLAGS "-D${_uname} -DDATE_SYS=${_uname} -Dlong32=\"int\" -Dlong64=\"long long\" -DdatePointer=\"long\"")
33 Set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${DATEFLAGS})