mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 04:08:21 +04:00
Allows simplifying the Makefile. Also faster compilation. Signed-off-by: Rosen Penev <rosenp@gmail.com>
16 lines
460 B
Diff
16 lines
460 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -131,7 +131,11 @@ if(WITH_TOOLS)
|
|
add_executable(qrenc qrenc.c)
|
|
set_target_properties(qrenc PROPERTIES OUTPUT_NAME qrencode)
|
|
|
|
- target_link_libraries(qrenc qrencode PNG::PNG)
|
|
+ if(NOT WITHOUT_PNG)
|
|
+ target_link_libraries(qrenc qrencode PNG::PNG)
|
|
+ else()
|
|
+ target_link_libraries(qrenc qrencode)
|
|
+ endif()
|
|
|
|
if(MSVC)
|
|
target_link_libraries(qrenc ${GETOPT_LIBRARIES})
|