Skip to content

Commit 5aa7835

Browse files
committed
fix(cmake): Apply include_guard to the current scope to enable find_package calls from different scopes to succeed.
1 parent 9ed78cd commit 5aa7835

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
include_guard(GLOBAL)
1+
include_guard()
22

33
include("${CMAKE_CURRENT_LIST_DIR}/containers-target.cmake")

cmake/ystdlib/libs/error_handling-config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include_guard(GLOBAL)
1+
include_guard()
22

33
find_dependency(Boost @BOOST_FIND_PACKAGE_ARGS@)
44

cmake/ystdlib/libs/io_interface-config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include_guard(GLOBAL)
1+
include_guard()
22

33
include("${CMAKE_CURRENT_LIST_DIR}/wrapped_facade_headers-config.cmake")
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
include_guard(GLOBAL)
1+
include_guard()
22

33
include("${CMAKE_CURRENT_LIST_DIR}/wrapped_facade_headers-target.cmake")

0 commit comments

Comments
 (0)