Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
use PROJECT_BINARY_DIR for sys/ compat headers
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFrench committed Jul 9, 2017
1 parent adc71c3 commit 012341c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,17 @@ endif()

if (NOT HAVE_SYS_TREE)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/compat/sys/tree.h.in
${CMAKE_CURRENT_BINARY_DIR}/compat/sys/tree.h)
${PROJECT_BINARY_DIR}/compat/sys/tree.h)

include_directories(${PROJECT_BINARY_DIR}/compat)

endif(NOT HAVE_SYS_TREE)

if (NOT HAVE_SYS_QUEUE)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/compat/sys/queue.h.in
${CMAKE_CURRENT_BINARY_DIR}/compat/sys/queue.h)
${PROJECT_BINARY_DIR}/compat/sys/queue.h)

include_directories(${PROJECT_BINARY_DIR}/compat)
endif(NOT HAVE_SYS_QUEUE)

if (NOT HAVE_STRNDUP)
Expand Down

0 comments on commit 012341c

Please sign in to comment.