Skip to content

Commit c03806a

Browse files
authored
fix(cmake): Change include_guards from the global scope to the current scope, to enable find_package calls from different scopes to succeed (fixes #74). (#75)
1 parent 9ed78cd commit c03806a

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)