diff options
author | Vladislav Vaintroub <wlad@sol> | 2009-12-01 18:28:13 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@sol> | 2009-12-01 18:28:13 +0000 |
commit | 1407b6f1ec1e4cf86423744e6fd7657a1a541ec8 (patch) | |
tree | 290987a54abdda4cef0ddbe235b6173d037b6b87 /cmake/dtrace.cmake | |
parent | 8b90176a47a6a1a2963ac4d121aa346519f6835d (diff) | |
download | mariadb-git-1407b6f1ec1e4cf86423744e6fd7657a1a541ec8.tar.gz |
fix build errors
Diffstat (limited to 'cmake/dtrace.cmake')
-rw-r--r-- | cmake/dtrace.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/dtrace.cmake b/cmake/dtrace.cmake index c0f66e4c46c..58fbbba022c 100644 --- a/cmake/dtrace.cmake +++ b/cmake/dtrace.cmake @@ -86,7 +86,13 @@ MACRO (DTRACE_INSTRUMENT target) -P ${CMAKE_SOURCE_DIR}/cmake/dtrace_prelink.cmake WORKING_DIRECTORY ${objdir} ) - SET_TARGET_PROPERTIES(${target} PROPERTIES LINK_FLAGS "${outfile}") + GET_TARGET_PROPERTY(target_link_flags ${target} LINK_FLAGS) + IF(NOT target_link_flags) + SET(target_link_flags) + ENDIF() + + SET_TARGET_PROPERTIES(${target} PROPERTIES LINK_FLAGS + "${target_link_flags} ${outfile}") ENDIF() ENDIF() ENDMACRO() |