update libpng as static library. (#282)
To fix the error when trying to save image with png extension
This commit is contained in:
@@ -67,11 +67,10 @@ set_target_properties(ogg PROPERTIES
|
||||
IMPORTED_IMPLIB ${CMAKE_CURRENT_LIST_DIR}/libs/ogg.lib
|
||||
)
|
||||
|
||||
add_library(png SHARED IMPORTED GLOBAL)
|
||||
add_library(png STATIC IMPORTED GLOBAL)
|
||||
|
||||
set_target_properties(png PROPERTIES
|
||||
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libpng16.dll
|
||||
IMPORTED_IMPLIB ${CMAKE_CURRENT_LIST_DIR}/libs/libpng16.lib
|
||||
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libpng16.lib
|
||||
)
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user