diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-12-05 13:34:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-12-05 13:35:26 +0300 |
commit | 95b224dab2ea02e89e64890f6764708a24705db8 (patch) | |
tree | bda38b6f8b271949299e97dd524bf1856faac681 /source/blender/datatoc | |
parent | b18f83bcf404fee98713fd2eba82570efb53f13e (diff) |
Fix compilation error on recent Debian desktop
Something funny happened here, there were missing symbols from png
library to math functions.
Diffstat (limited to 'source/blender/datatoc')
-rw-r--r-- | source/blender/datatoc/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/datatoc/CMakeLists.txt b/source/blender/datatoc/CMakeLists.txt index 0f123fbf9f0..af7f954cad1 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() |