Skip to content

Commit

Permalink
cmake: set auto moc policy CMP0071 to new
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed May 8, 2018
1 parent 2ac4fdd commit 3f9f6a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if(POLICY CMP0063) # visibility. since 3.3
cmake_policy(SET CMP0063 NEW)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
set(CMAKE_CXX_VISIBILITY_PRESET hidden) #use with -fdata-sections -ffunction-sections to reduce target size
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)

Expand Down

0 comments on commit 3f9f6a2

Please sign in to comment.