Skip to content

Commit

Permalink
Fix for libpng cmake include
Browse files Browse the repository at this point in the history
This seems necessary for most versions of linux now.
This should close issue cpp-io2d#115
  • Loading branch information
GregoryLand committed Sep 13, 2021
1 parent caa0ba0 commit bcb3718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions P0267_RefImpl/Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ elseif(APPLE)
find_library(PNG_LIB png16)
target_link_libraries(tests ${PNG_LIB})
else() # LINUX
find_path(PNG_INCLUDE_DIR libpng/png.h)
find_path(PNG_INCLUDE_DIR libpng16/png.h)
target_include_directories(tests PUBLIC ${PNG_INCLUDE_DIR})
find_library(PNG_LIB png)
find_library(PNG_LIB png16)
target_link_libraries(tests ${PNG_LIB})

endif()
Expand Down

0 comments on commit bcb3718

Please sign in to comment.