--- src/qmt_map2jnx/CMakeLists.txt.orig	2020-03-27 08:07:31 UTC
+++ src/qmt_map2jnx/CMakeLists.txt
@@ -48,7 +48,7 @@ IF(WIN32)
   ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
 ENDIF(WIN32)
 
-TARGET_LINK_LIBRARIES(${APPLICATION_NAME} ${GDAL_LIBRARIES} ${PROJ4_LIBRARIES} ${JPEG_LIBRARIES})
+TARGET_LINK_LIBRARIES(${APPLICATION_NAME} ${GDAL_LIBRARIES} ${PROJ4_LDFLAGS} ${PROJ4_LIBRARIES} ${JPEG_LIBRARIES})
 
 install(
     TARGETS ${APPLICATION_NAME} DESTINATION ${BIN_INSTALL_DIR}
