Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb40267

Browse files
committed
set visibility hidden by default
1 parent 42bb054 commit fb40267

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ if(MSVC)
1313
endif()
1414

1515
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
16+
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
17+
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
18+
set(CMAKE_DEBUG_POSTFIX d)
1619

1720
set(CMAKE_CONFIG_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")
1821
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CONFIG_PATH}")
@@ -39,9 +42,6 @@ endif()
3942

4043
set(BEHAVIOR_TREE_LIBRARY ${PROJECT_NAME})
4144

42-
if(MSVC)
43-
set(CMAKE_DEBUG_POSTFIX d)
44-
endif()
4545

4646
# Update the policy setting to avoid an error when loading the ament_cmake package
4747
# at the current cmake version level

0 commit comments

Comments
 (0)