File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 35
35
# Generate the buildfiles in a sub directory to not clutter the root directory with build files:
36
36
# mkdir build && cd build && cmake -G "Unix Makefiles" .. && cmake --build .
37
37
#
38
+ # Ensure that you avoid exposing godot-cpp symbols - this might lead to hard to debug errors if you ever load multiple
39
+ # plugins using difference godot-cpp versions. Use visibility hidden whenever possible:
40
+ # set_target_properties(<all-my-plugin-related-targets> PROPERTIES CXX_VISIBILITY_PRESET hidden)
41
+ #
38
42
# Todo
39
43
# Test build for Windows, Mac and mingw.
40
44
@@ -222,6 +226,7 @@ set_target_properties(${PROJECT_NAME}
222
226
PROPERTIES
223
227
CXX_EXTENSIONS OFF
224
228
POSITION_INDEPENDENT_CODE ON
229
+ CXX_VISIBILITY_PRESET hidden
225
230
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR} /bin"
226
231
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR} /bin"
227
232
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR} /bin"
You can’t perform that action at this time.
0 commit comments