Skip to content

Commit

Permalink
Improve linking for prototype1.
Browse files Browse the repository at this point in the history
The creational_patterns library is required for the prototype library,
but this was not specified yet.  It is now added as a PUBLIC link
library for prototype and because of that, we no longer need to specify
it as a linker library for prototype1.
  • Loading branch information
BartVandewoestyne committed Feb 12, 2024
1 parent 89a27ef commit b7feb8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Creational_Patterns/Prototype/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ set(prototype_SRCS

add_library(prototype SHARED ${prototype_SRCS})
target_include_directories(prototype PUBLIC ..)
target_link_libraries(prototype PUBLIC creational_patterns)

add_executable(prototype1 prototype1.cpp)

target_link_libraries(prototype1 prototype creational_patterns)
target_link_libraries(prototype1 PRIVATE prototype)

0 comments on commit b7feb8e

Please sign in to comment.