[Bf-blender-cvs] [95b224d] master: Fix compilation error on recent Debian desktop

Sergey Sharybin noreply at git.blender.org
Mon Dec 5 11:35:29 CET 2016


Commit: 95b224dab2ea02e89e64890f6764708a24705db8
Author: Sergey Sharybin
Date:   Mon Dec 5 11:34:49 2016 +0100
Branches: master
https://developer.blender.org/rB95b224dab2ea02e89e64890f6764708a24705db8

Fix compilation error on recent Debian desktop

Something funny happened here, there were missing symbols from png
library to math functions.

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

M	source/blender/datatoc/CMakeLists.txt

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

diff --git a/source/blender/datatoc/CMakeLists.txt b/source/blender/datatoc/CMakeLists.txt
index 0f123fb..af7f954 100644
--- a/source/blender/datatoc/CMakeLists.txt
+++ b/source/blender/datatoc/CMakeLists.txt
@@ -62,4 +62,9 @@ if(NOT WITH_HEADLESS)
 	add_executable(datatoc_icon ${SRC})
 
 	target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
+	# PNG library uses pow() and floow(), so seems -lm is required for proper
+	# workign binary.
+	if(UNIX AND NOT APPLE)
+		target_link_libraries(datatoc_icon m)
+	endif()
 endif()




More information about the Bf-blender-cvs mailing list