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