Skip to content

Commit

Permalink
Always use PUBLIC for target_link_libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
lw committed Apr 25, 2020
1 parent 509e405 commit dce9b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_executable(maniac

if (UNIX)
find_package(X11 REQUIRED)
target_link_libraries(maniac ${X11_LIBRARIES})
target_link_libraries(maniac PUBLIC ${X11_LIBRARIES})

find_path(XTEST_INCLUDE_DIR NAMES X11/extensions/XTest.h
PATH_SUFFIXES X11/extensions
Expand Down

0 comments on commit dce9b4c

Please sign in to comment.