diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-10-19 14:55:12 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-10-19 14:55:12 +0000 |
commit | 70dce86ab34c3170a17609f4aeb92fc1bf9b5e31 (patch) | |
tree | 9b2f2f551c1a7ad22946645b74b0262ac7e48d75 /cmake | |
parent | f6e6660a194a8c601c416f2c4ac0473bd4067d0c (diff) |
Set and use TMPDIR for ABI dump generation when using CMake
svn path=/trunk/; revision=52688
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/UseABICheck.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/modules/UseABICheck.cmake b/cmake/modules/UseABICheck.cmake index fcbe2d55b6..5ec5462ec3 100644 --- a/cmake/modules/UseABICheck.cmake +++ b/cmake/modules/UseABICheck.cmake @@ -6,6 +6,7 @@ # Checked using version 1.21.12 MACRO(ABICHECK _libname) + set(ABICHECK_TMPDIR ${CMAKE_CURRENT_BINARY_DIR}/abi-check-headers) get_directory_property(INCLUDE_DIRS INCLUDE_DIRECTORIES) list(REMOVE_DUPLICATES INCLUDE_DIRS) string(REGEX REPLACE ";" "\n" INCLUDE_DIRS "${INCLUDE_DIRS}") @@ -13,8 +14,8 @@ MACRO(ABICHECK _libname) # discover and substitute list of include directories for ABI compatibility # checks file(GLOB HEADERS *.h) - file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/abi-check-headers) - file(COPY ${HEADERS} ../ws_symbol_export.h DESTINATION abi-check-headers) + file(MAKE_DIRECTORY ${ABICHECK_TMPDIR}) + file(COPY ${HEADERS} ../ws_symbol_export.h DESTINATION ${ABICHECK_TMPDIR}) add_custom_target(dumpabi-${_libname} DEPENDS ${_libname}.abi.tar.gz) ENDMACRO() |