diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-12-01 14:35:09 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-12-01 14:35:09 +0100 |
commit | 8b90176a47a6a1a2963ac4d121aa346519f6835d (patch) | |
tree | 98d7b9f5a76ba854d41ed5e9fffb5650482b57e1 /cmake/libutils.cmake | |
parent | 60a3d300869bf44be7338ff0f3608ec9008dbe26 (diff) | |
download | mariadb-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.cmake | 4 |
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() |