diff --git a/CMakeLists.txt b/CMakeLists.txt index ddc44910f..81f15cf89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -605,7 +605,7 @@ SET(OPENSCENEGRAPH_VERSION_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/include/osg/Versi CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/osg/Version.in" "${OPENSCENEGRAPH_VERSION_HEADER}") -SET(OPENSCENEGRAPH_OPENGL_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/include/osg/OpenGL") +SET(OPENSCENEGRAPH_OPENGL_HEADER "${PROJECT_BINARY_DIR}/include/osg/OpenGL") CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/osg/OpenGL.in" "${OPENSCENEGRAPH_OPENGL_HEADER}")