summaryrefslogtreecommitdiff
path: root/cmake/libutils.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2009-12-01 14:35:09 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2009-12-01 14:35:09 +0100
commit8b90176a47a6a1a2963ac4d121aa346519f6835d (patch)
tree98d7b9f5a76ba854d41ed5e9fffb5650482b57e1 /cmake/libutils.cmake
parent60a3d300869bf44be7338ff0f3608ec9008dbe26 (diff)
downloadmariadb-git-8b90176a47a6a1a2963ac4d121aa346519f6835d.tar.gz
in RESTRICT_SYMBOL_EXPORTS,handle cases where COMPILE_FLAGS are not set
(COMPILE_FLAGS-NOTFOUND)
Diffstat (limited to 'cmake/libutils.cmake')
-rw-r--r--cmake/libutils.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake
index be0523d7080..0c34754bc75 100644
--- a/cmake/libutils.cmake
+++ b/cmake/libutils.cmake
@@ -260,6 +260,10 @@ ENDMACRO()
MACRO(RESTRICT_SYMBOL_EXPORTS target)
IF(CMAKE_COMPILER_IS_GNUCXX AND UNIX)
GET_TARGET_PROPERTY(COMPILE_FLAGS ${target} COMPILE_FLAGS)
+ IF(NOT COMPILE_FLAGS)
+ # Avoid COMPILE_FLAGS-NOTFOUND
+ SET(COMPILE_FLAGS)
+ ENDIF()
SET_TARGET_PROPERTIES(${target} PROPERTIES
COMPILE_FLAGS "${COMPILE_FLAGS} -fvisibility=hidden")
ENDIF()