diff options
| author | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-11-25 21:52:24 +0000 |
|---|---|---|
| committer | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-11-25 21:52:24 +0000 |
| commit | 570dd13f5556e0512fb76bed99d33e0e8e26c9bd (patch) | |
| tree | 0853627d702d15b9c731fc1998c2b63503e73595 /src | |
| parent | 63f877769cb2adb3b69575f326e09d39ea016bf9 (diff) | |
[trunk] removed some warnings when configuring with CMake 3.x on MacOS
Update issue 443
Warnings related to OPJ_USE_DSYMUTIL are fixed
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/jp2/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/lib/openjp2/CMakeLists.txt | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/bin/jp2/CMakeLists.txt b/src/bin/jp2/CMakeLists.txt index a353a8f8..ec13fc18 100644 --- a/src/bin/jp2/CMakeLists.txt +++ b/src/bin/jp2/CMakeLists.txt @@ -51,10 +51,9 @@ foreach(exe opj_decompress opj_compress opj_dump) DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications ) if(OPJ_USE_DSYMUTIL) - GET_TARGET_PROPERTY(EXE_LOCATION ${exe} LOCATION) add_custom_command(TARGET ${exe} POST_BUILD - COMMAND "dsymutil" "${EXE_LOCATION}" - COMMENT "dsymutil ${EXE_LOCATION}" + COMMAND "dsymutil" "$<TARGET_FILE:${exe}>" + COMMENT "dsymutil $<TARGET_FILE:${exe}>" DEPENDS ${exe}) endif() endforeach() diff --git a/src/lib/openjp2/CMakeLists.txt b/src/lib/openjp2/CMakeLists.txt index ca59c113..5727068c 100644 --- a/src/lib/openjp2/CMakeLists.txt +++ b/src/lib/openjp2/CMakeLists.txt @@ -101,10 +101,9 @@ endif() if(OPJ_USE_DSYMUTIL) if(BUILD_SHARED_LIBS) - GET_TARGET_PROPERTY(OPENJPEG_LIBRARY_LOCATION ${OPENJPEG_LIBRARY_NAME} LOCATION) add_custom_command(TARGET ${OPENJPEG_LIBRARY_NAME} POST_BUILD - COMMAND "dsymutil" "${OPENJPEG_LIBRARY_LOCATION}" - COMMENT "dsymutil ${OPENJPEG_LIBRARY_LOCATION}" + COMMAND "dsymutil" "$<TARGET_SONAME_FILE:${OPENJPEG_LIBRARY_NAME}>" + COMMENT "dsymutil $<TARGET_SONAME_FILE:${OPENJPEG_LIBRARY_NAME}>" DEPENDS ${OPENJPEG_LIBRARY_NAME}) endif() endif() |
