Skip to content

Commit

Permalink
Use full path to pcm
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Apr 14, 2023
1 parent d97d8ce commit 8ec94ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function(add_module_library name)
set(pcm ${pcm}.pcm)

# 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
# to it.
Expand Down

0 comments on commit 8ec94ac

Please sign in to comment.