From Mathias Froehlich, made the include of bin directory for include/OpenThreads/Config only used when doing out of source builds

This commit is contained in:
Robert Osfield 2008-06-20 11:16:06 +00:00
parent bc6e5b5da2
commit ce13510b47

View File

@ -98,8 +98,11 @@ IF(UNIX)
ENDIF(UNIX) ENDIF(UNIX)
# Make the headers visible to everything # Make the headers visible to everything
IF(NOT ${PROJECT_BINARY_DIR} EQUAL ${PROJECT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}/include)
ENDIF(NOT ${PROJECT_BINARY_DIR} EQUAL ${PROJECT_SOURCE_DIR})
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${PROJECT_BINARY_DIR}/include
${OpenSceneGraph_SOURCE_DIR}/include ${OpenSceneGraph_SOURCE_DIR}/include
${OPENGL_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR}
) )