File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3535# Generate the buildfiles in a sub directory to not clutter the root directory with build files: 
3636# mkdir build && cd build && cmake -G "Unix Makefiles" .. && cmake --build . 
3737# 
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+ # 
3842# Todo 
3943# Test build for Windows, Mac and mingw. 
4044
@@ -222,6 +226,7 @@ set_target_properties(${PROJECT_NAME}
222226PROPERTIES
223227CXX_EXTENSIONS OFF 
224228POSITION_INDEPENDENT_CODE  ON 
229+ CXX_VISIBILITY_PRESET hidden
225230ARCHIVE_OUTPUT_DIRECTORY  "${CMAKE_CURRENT_BINARY_DIR} /bin" 
226231LIBRARY_OUTPUT_DIRECTORY  "${CMAKE_CURRENT_BINARY_DIR} /bin" 
227232RUNTIME_OUTPUT_DIRECTORY  "${CMAKE_CURRENT_BINARY_DIR} /bin" 
                         You can’t perform that action at this time. 
           
                  
0 commit comments