Skip to content

Commit

Permalink
Problem compiling on FreeBSD with clang toolchain fixed. HAVE_TIME_H …
Browse files Browse the repository at this point in the history
…defined on Linux and FreeBSD systems
  • Loading branch information
kradih committed Aug 2, 2016
1 parent f3c2b6d commit c7f7c35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ endif()

if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(--std=c++11)
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
add_definitions(-DHAVE_TIME_H)
endif()

Expand Down

0 comments on commit c7f7c35

Please sign in to comment.