diff --git a/data/examples/CMakeLists.txt b/data/examples/CMakeLists.txt index 8bda04eafb..f0930ab3c3 100644 --- a/data/examples/CMakeLists.txt +++ b/data/examples/CMakeLists.txt @@ -18,7 +18,7 @@ ADD_CUSTOM_TARGET(Example_data ALL # 0001097: CMake stops with error "Circular ... <- ... dependency dropped." if(NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") - fc_copy_sources(Example_data "${CMAKE_BINARY_DIR}/data/examples" ${Examples_Files}) + fc_copy_sources(Example_data "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/examples" ${Examples_Files}) endif() if (WIN32 AND FREECAD_LIBPACK_USE)