Unverified Commit a2df21b3 authored by Tomas Maly's avatar Tomas Maly Committed by Ralph Giles

cmake: fix out-of-source build

Generate config_types in the build directory instead of
the source directory.
Signed-off-by: Ralph Giles's avatarRalph Giles <giles@thaumas.net>
parent cab46b19
......@@ -43,7 +43,7 @@ function(configure_pkg_config_file pkg_config_file_in)
set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
set(VERSION ${PROJECT_VERSION})
string(REPLACE ".in" "" pkg_config_file ${pkg_config_file_in})
configure_file(${pkg_config_file_in} ${CMAKE_CURRENT_SOURCE_DIR}/${pkg_config_file} @ONLY)
configure_file(${pkg_config_file_in} ${CMAKE_CURRENT_BINARY_DIR}/${pkg_config_file} @ONLY)
endfunction()
message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
......@@ -59,7 +59,7 @@ set(SIZE32 int32_t)
set(USIZE32 uint32_t)
set(SIZE64 int64_t)
configure_file(include/ogg/config_types.h.in ${CMAKE_CURRENT_SOURCE_DIR}/include/ogg/config_types.h @ONLY)
configure_file(include/ogg/config_types.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/ogg/config_types.h @ONLY)
set(OGG_HEADERS
include/ogg/config_types.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment