fix compilation for mingw-w64
[blender.git] / source / blender / datatoc / CMakeLists.txt
index 78ae00d8a8325ea2c3c6069f9b8cf6033c2e9327..a1776c312f4e962a9f5204f7fb6c6e76c548806c 100644 (file)
@@ -39,9 +39,9 @@ if(NOT WITH_HEADLESS)
        )
 
        include_directories(${PNG_INCLUDE_DIR})
        )
 
        include_directories(${PNG_INCLUDE_DIR})
+       link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
 
        add_executable(datatoc_icon ${SRC})
 
 
        add_executable(datatoc_icon ${SRC})
 
-       link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
-       target_link_libraries(datatoc_icon ${PNG_LIBRARIES})
+       target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
 endif()
 endif()