Skip to content

Commit

Permalink
Fix CMake source tree file generation.
Browse files Browse the repository at this point in the history
Minor change to CMakeLists.txt to make sure config_types.h and ogg.pc get
generated in the source tree as expected.

Signed-off-by: Ralph Giles <[email protected]>
  • Loading branch information
georgegerdin authored and rillian committed Jul 20, 2015
1 parent 8755aef commit 9b2ba41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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} ${pkg_config_file} @ONLY)
configure_file(${pkg_config_file_in} ${CMAKE_CURRENT_SOURCE_DIR}/${pkg_config_file} @ONLY)
endfunction()

message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
Expand All @@ -59,7 +59,7 @@ set(SIZE32 int32_t)
set(USIZE32 uint32_t)
set(SIZE64 int64_t)

configure_file(include/ogg/config_types.h.in include/ogg/config_types.h @ONLY)
configure_file(include/ogg/config_types.h.in ${CMAKE_CURRENT_SOURCE_DIR}/include/ogg/config_types.h @ONLY)

set(OGG_HEADERS
include/ogg/ogg.h
Expand Down

0 comments on commit 9b2ba41

Please sign in to comment.