From 6feeede47ffa59f4128da7a82d1e0f115337bdac Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 7 Apr 2020 13:42:43 +0200 Subject: Fix Blender not rebuilding when changing linker script --- source/creator/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/creator/CMakeLists.txt') diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index ced0532a8fa..4b51f9738b3 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -1061,6 +1061,12 @@ unset(LIB) setup_liblinks(blender) +if(APPLE) + set_target_properties(blender PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/osx_locals.map) +elseif(UNIX) + set_target_properties(blender PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/blender.map) +endif() + # ----------------------------------------------------------------------------- # USD registry. # USD requires a set of JSON files that define the standard schemas. These -- cgit v1.2.3