Skip to content
Permalink
Browse files
Use -fvisibility=hidden also for plugins
  • Loading branch information
m-kuhn committed May 23, 2015
1 parent eb85d99 commit 14c615025e8e6f7174cedfb6fa40a4e4e95f9e61
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/plugins/CMakeLists.txt
@@ -1,3 +1,6 @@
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
ENDIF()
# override default path where built files are put to allow running qgis without installing
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_PLUGIN_SUBDIR})
SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_PLUGIN_SUBDIR})

0 comments on commit 14c6150

Please sign in to comment.