Commit a2a276b2 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

in RESTRICT_SYMBOL_EXPORTS,handle cases where COMPILE_FLAGS are not set

(COMPILE_FLAGS-NOTFOUND)
parent b5f2b3bc
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment