You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
460 B

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -131,7 +131,11 @@ if(WITH_TOOLS)
  4. add_executable(qrenc qrenc.c)
  5. set_target_properties(qrenc PROPERTIES OUTPUT_NAME qrencode)
  6. - target_link_libraries(qrenc qrencode PNG::PNG)
  7. + if(NOT WITHOUT_PNG)
  8. + target_link_libraries(qrenc qrencode PNG::PNG)
  9. + else()
  10. + target_link_libraries(qrenc qrencode)
  11. + endif()
  12. if(MSVC)
  13. target_link_libraries(qrenc ${GETOPT_LIBRARIES})