[Bf-blender-cvs] [b3c6ab50844] master: Fix datatoc_icon linker errors with ASan enabled.

Ankit Meel noreply at git.blender.org
Mon Sep 21 13:08:36 CEST 2020


Commit: b3c6ab50844e9e88d9009b5d7367dada0541d253
Author: Ankit Meel
Date:   Sun Sep 20 15:20:31 2020 +0530
Branches: master
https://developer.blender.org/rBb3c6ab50844e9e88d9009b5d7367dada0541d253

Fix datatoc_icon linker errors with ASan enabled.

Error introduced in {rBf9fcb25d521d}.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8964

===================================================================

M	source/blender/datatoc/CMakeLists.txt

===================================================================

diff --git a/source/blender/datatoc/CMakeLists.txt b/source/blender/datatoc/CMakeLists.txt
index 3253db2314d..3dc4a1add76 100644
--- a/source/blender/datatoc/CMakeLists.txt
+++ b/source/blender/datatoc/CMakeLists.txt
@@ -55,6 +55,7 @@ if(NOT WITH_HEADLESS)
   link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
 
   add_executable(datatoc_icon ${SRC})
+  setup_platform_linker_flags(datatoc_icon)
 
   target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
   # PNG library uses pow() and floow(), so seems -lm is required for proper



More information about the Bf-blender-cvs mailing list