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/bin/jp2 | |
| 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/bin/jp2')
| -rw-r--r-- | src/bin/jp2/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 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() |
