summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-05-27 19:05:50 -0700
committerGravatar Yuri Kunde Schlesner2017-05-27 20:44:51 -0700
commit4660bc1c786b5f9d3fed74b6b51a8ba3e468d7e4 (patch)
tree00b0fb618413536758aef0679051d2dcf6e79169 /src
parentTravis: Upgrade to CMake 3.6.3 (diff)
downloadyuzu-4660bc1c786b5f9d3fed74b6b51a8ba3e468d7e4.tar.gz
yuzu-4660bc1c786b5f9d3fed74b6b51a8ba3e468d7e4.tar.xz
yuzu-4660bc1c786b5f9d3fed74b6b51a8ba3e468d7e4.zip
CMake: Use IMPORTED target for libpng
Diffstat (limited to 'src')
-rw-r--r--src/video_core/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index e455f03bd..45f4ad2d5 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -87,7 +87,6 @@ if (ARCHITECTURE_x86_64)
87endif() 87endif()
88 88
89if (PNG_FOUND) 89if (PNG_FOUND)
90 target_link_libraries(video_core PRIVATE ${PNG_LIBRARIES}) 90 target_link_libraries(video_core PRIVATE PNG::PNG)
91 target_include_directories(video_core PRIVATE ${PNG_INCLUDE_DIRS}) 91 target_compile_definitions(video_core PRIVATE HAVE_PNG)
92 target_compile_definitions(video_core PRIVATE ${PNG_DEFINITIONS})
93endif() 92endif()