From a9e3f17f314a9b54c58438bbb71187641643f081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Sun, 1 Oct 2017 21:47:17 +0200 Subject: [PATCH] Generate exv_conf.h file out of the source tree. Install it in the include folder. --- config/generateConfigFile.cmake | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/generateConfigFile.cmake b/config/generateConfigFile.cmake index 98a2a7dd..40ce0479 100644 --- a/config/generateConfigFile.cmake +++ b/config/generateConfigFile.cmake @@ -67,4 +67,4 @@ return 0; ##################################################################################### -configure_file( config/config.h.cmake ${CMAKE_SOURCE_DIR}/include/exiv2/exv_conf.h @ONLY) +configure_file( config/config.h.cmake ${CMAKE_BINARY_DIR}/exv_conf.h @ONLY) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b25b71b9..f2c1d182 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -107,7 +107,7 @@ set( LIBEXIV2_HDR ../include/exiv2/asfvideo.hpp ../include/exiv2/xmp_exiv2.hpp ../include/exiv2/xmpsidecar.hpp ../include/exiv2/utilsvideo.hpp - ../include/exiv2/exv_conf.h + ${CMAKE_BINARY_DIR}/exv_conf.h ) # Private headers only needed to build the library