diff --git a/build-utils/cmake/shared_library.cmake b/build-utils/cmake/shared_library.cmake index 4f7a01d52..980eee9cd 100644 --- a/build-utils/cmake/shared_library.cmake +++ b/build-utils/cmake/shared_library.cmake @@ -43,6 +43,6 @@ function(target_copy_shared_libraries _TARGET) VERBATIM) # This allows to create a dependency with the command above, so command is executed again when target is built AND a DLL changed - target_sources(${_TARGET} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/${_TARGET}_dll_copy") + target_sources(${_TARGET} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/${_TARGET}_dll_copy") endif() -endfunction() \ No newline at end of file +endfunction()