mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Workaround cmake issue
This commit is contained in:
parent
165814d57a
commit
faf83406a9
@ -242,6 +242,10 @@ if (FMT_MODULE)
|
|||||||
enable_module(fmt)
|
enable_module(fmt)
|
||||||
target_sources(fmt PUBLIC
|
target_sources(fmt PUBLIC
|
||||||
FILE_SET cxx_modules TYPE CXX_MODULES FILES src/fmt.cc)
|
FILE_SET cxx_modules TYPE CXX_MODULES FILES src/fmt.cc)
|
||||||
|
# Workaround a CMake issue when using fmt as a subdirectory.
|
||||||
|
target_compile_options(
|
||||||
|
fmt PUBLIC
|
||||||
|
-fprebuilt-module-path=${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/fmt.dir)
|
||||||
# Workaround a bug in clang-scan-deps.
|
# Workaround a bug in clang-scan-deps.
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
fmt PUBLIC /usr/lib/gcc/x86_64-linux-gnu/12/include)
|
fmt PUBLIC /usr/lib/gcc/x86_64-linux-gnu/12/include)
|
||||||
|
Loading…
Reference in New Issue
Block a user