[trunk] removed some warnings when configuring with CMake 3.x on MacOS
Update issue 443 Warnings related to OPJ_USE_DSYMUTIL are fixed
This commit is contained in:
parent
63f877769c
commit
570dd13f55
|
@ -51,10 +51,9 @@ foreach(exe opj_decompress opj_compress opj_dump)
|
||||||
DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
|
DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
|
||||||
)
|
)
|
||||||
if(OPJ_USE_DSYMUTIL)
|
if(OPJ_USE_DSYMUTIL)
|
||||||
GET_TARGET_PROPERTY(EXE_LOCATION ${exe} LOCATION)
|
|
||||||
add_custom_command(TARGET ${exe} POST_BUILD
|
add_custom_command(TARGET ${exe} POST_BUILD
|
||||||
COMMAND "dsymutil" "${EXE_LOCATION}"
|
COMMAND "dsymutil" "$<TARGET_FILE:${exe}>"
|
||||||
COMMENT "dsymutil ${EXE_LOCATION}"
|
COMMENT "dsymutil $<TARGET_FILE:${exe}>"
|
||||||
DEPENDS ${exe})
|
DEPENDS ${exe})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
@ -101,10 +101,9 @@ endif()
|
||||||
|
|
||||||
if(OPJ_USE_DSYMUTIL)
|
if(OPJ_USE_DSYMUTIL)
|
||||||
if(BUILD_SHARED_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
GET_TARGET_PROPERTY(OPENJPEG_LIBRARY_LOCATION ${OPENJPEG_LIBRARY_NAME} LOCATION)
|
|
||||||
add_custom_command(TARGET ${OPENJPEG_LIBRARY_NAME} POST_BUILD
|
add_custom_command(TARGET ${OPENJPEG_LIBRARY_NAME} POST_BUILD
|
||||||
COMMAND "dsymutil" "${OPENJPEG_LIBRARY_LOCATION}"
|
COMMAND "dsymutil" "$<TARGET_SONAME_FILE:${OPENJPEG_LIBRARY_NAME}>"
|
||||||
COMMENT "dsymutil ${OPENJPEG_LIBRARY_LOCATION}"
|
COMMENT "dsymutil $<TARGET_SONAME_FILE:${OPENJPEG_LIBRARY_NAME}>"
|
||||||
DEPENDS ${OPENJPEG_LIBRARY_NAME})
|
DEPENDS ${OPENJPEG_LIBRARY_NAME})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue