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