diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e07abf..13482c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -392,7 +392,7 @@ endif() target_link_libraries(cmfrec PUBLIC ${union_list}) # Public header with the data types substituted according to what was built -configure_file(${PROJECT_SOURCE_DIR}/include/cmfrec.h.in cmfrec.h @ONLY) +configure_file(${PROJECT_SOURCE_DIR}/include/cmfrec.h.in ${CMAKE_BINARY_DIR}/cmfrec.h @ONLY) set_target_properties(cmfrec PROPERTIES PUBLIC_HEADER ${CMAKE_BINARY_DIR}/cmfrec.h SOVERSION 3 VERSION ${PROJECT_VERSION}) # Install target