diff options
| author | 2017-05-27 19:05:50 -0700 | |
|---|---|---|
| committer | 2017-05-27 20:44:51 -0700 | |
| commit | 4660bc1c786b5f9d3fed74b6b51a8ba3e468d7e4 (patch) | |
| tree | 00b0fb618413536758aef0679051d2dcf6e79169 /src | |
| parent | Travis: Upgrade to CMake 3.6.3 (diff) | |
| download | yuzu-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.txt | 5 |
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) | |||
| 87 | endif() | 87 | endif() |
| 88 | 88 | ||
| 89 | if (PNG_FOUND) | 89 | if (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}) | ||
| 93 | endif() | 92 | endif() |