Skip to content

Commit

Permalink
Pull LINK_LIBRARIES property from target to pch_target.
Browse files Browse the repository at this point in the history
  • Loading branch information
dura authored and nanoant committed Apr 7, 2019
1 parent b822ab7 commit 6bab284
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakePCHCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ function(target_precompiled_header) # target [...] header
endif()
endif()

get_target_property(target_libraries ${target} LINK_LIBRARIES)
set_target_properties(${pch_target} PROPERTIES LINK_LIBRARIES "${target_libraries}")

add_dependencies(${target} ${pch_target})

if(MSVC)
Expand Down

0 comments on commit 6bab284

Please sign in to comment.