Skip to content

Commit dfe9742

Browse files
committed
fix(cmake): add include_guard(GLOBAL) to Linting and Ccache modules
Consistent with ROS2MedkitCompat.cmake to prevent double-inclusion.
1 parent 5a5747b commit dfe9742

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cmake/ROS2MedkitCcache.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
include_guard(GLOBAL)
16+
1517
# Auto-detect and enable ccache if available.
1618
# Include this module early in CMakeLists.txt (before add_library/add_executable).
1719
#

cmake/ROS2MedkitLinting.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
include_guard(GLOBAL)
16+
1517
# Shared linting configuration for ros2_medkit packages.
1618
# Include this in CMakeLists.txt BEFORE the if(BUILD_TESTING) block
1719
# (alongside include(ROS2MedkitCcache) - CMAKE_MODULE_PATH is already set).

0 commit comments

Comments
 (0)