mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-13 13:49:58 +08:00
Use full path to pcm
This commit is contained in:
parent
d97d8cea67
commit
8ec94ac6a5
@ -72,7 +72,8 @@ function(add_module_library name)
|
|||||||
set(pcm ${pcm}.pcm)
|
set(pcm ${pcm}.pcm)
|
||||||
|
|
||||||
# Propagate -fmodule-file=*.pcm to targets that link with this library.
|
# Propagate -fmodule-file=*.pcm to targets that link with this library.
|
||||||
target_compile_options(${name} PUBLIC -fmodule-file=${pcm})
|
target_compile_options(
|
||||||
|
${name} PUBLIC -fmodule-file=${CMAKE_CURRENT_BINARY_DIR}/${pcm})
|
||||||
|
|
||||||
# Use an absolute path to prevent target_link_libraries prepending -l
|
# Use an absolute path to prevent target_link_libraries prepending -l
|
||||||
# to it.
|
# to it.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user