summaryrefslogtreecommitdiff
path: root/cmake/libutils.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@sol>2009-12-05 13:16:30 +0000
committerVladislav Vaintroub <wlad@sol>2009-12-05 13:16:30 +0000
commit04d2adbd4fd4cce8e6b7a879f1e62f5e2f6c20d8 (patch)
treee8c322c28c5f00fc86fa0abaa847ca4141573a90 /cmake/libutils.cmake
parenta426f50f5c77086f50d1853f48159c391bcd633f (diff)
downloadmariadb-git-04d2adbd4fd4cce8e6b7a879f1e62f5e2f6c20d8.tar.gz
Fix creation of exports file on Unix
Diffstat (limited to 'cmake/libutils.cmake')
-rw-r--r--cmake/libutils.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake
index 0c34754bc75..dc151bc12f2 100644
--- a/cmake/libutils.cmake
+++ b/cmake/libutils.cmake
@@ -76,7 +76,7 @@ MACRO(CREATE_EXPORT_FILE VAR TARGET API_FUNCTIONS)
CONFIGURE_FILE_CONTENT(${CONTENT} ${EXPORTS})
SET(${VAR} ${DUMMY} ${EXPORTS})
ELSE()
- SET(EXPORTS ${CMAKE_CURRENT_BINARY_DIR}/${target}_exports_file.cc)
+ SET(EXPORTS ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_exports_file.cc)
SET(CONTENT)
FOREACH(FUNC ${API_FUNCTIONS})
SET(CONTENT "${CONTENT} extern void* ${FUNC}\;\n")
@@ -241,7 +241,9 @@ MACRO(MERGE_LIBRARIES)
ENDIF()
ENDFOREACH()
ENDIF()
- CREATE_EXPORT_FILE(SRC ${TARGET} "${EXPORTS}")
+
+
+ CREATE_EXPORT_FILE(SRC ${TARGET} "${ARG_EXPORTS}")
ADD_LIBRARY(${TARGET} SHARED ${SRC})
TARGET_LINK_LIBRARIES(${TARGET} ${LIBS})
IF(ARG_OUTPUT_NAME)