Skip to content

Commit f43e44a

Browse files
committed
Fix issues with LZ_STANDALONE define
1 parent d3e5dd1 commit f43e44a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif()
1717
include(GNUInstallDirs)
1818
set(CPP-LAZY_INCLUDE_DIR "${CMAKE_INSTALL_INCLUDEDIR}" CACHE STRING "Installation directory of the include files")
1919

20-
option(CPP-LAZY_USE_MODULES "Enable C++20's modules" NO)
20+
option(CPP-LAZY_USE_MODULES "Enable C++20's modules, experimental" NO)
2121

2222
if (CPP-LAZY_USE_MODULES)
2323
set(CPP-LAZY_SOURCE_FILES "src/lz.cppm")

cmake/cpp-lazyConfig.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
include(CMakeFindDependencyMacro)
2-
find_dependency(fmt)
2+
3+
if (NOT CPP-LAZY_USE_STANDALONE)
4+
find_dependency(fmt)
5+
endif()
36

47
include("${CMAKE_CURRENT_LIST_DIR}/cpp-lazyTargets.cmake")

include/Lz/detail/LzTools.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
# include <charconv>
9494
# endif
9595

96-
# if !defined(LZ_STANDALONE) || !defined(LZ_MODULE_EXPORT)
96+
# if !defined(LZ_STANDALONE)
9797
# include <fmt/format.h>
9898
# include <fmt/ranges.h>
9999
# endif

0 commit comments

Comments
 (0)