I don't understand list function grammar among cmake grammar

Asked 2 years ago, Updated 2 years ago, 105 views

# set default library for project.
list (APPEND LINK_LIBRARIES dl m pthread

There's a chord like this I can guess, but I don't know what this means I would appreciate it more if you could tell me how to use it

cmake make c

2022-09-21 18:45

1 Answers

dl, m, and pthread are all the names of shared libraries. libdl means dynamic linking library, libm means math library, and libpthread means posix thread library.This section lists the libraries you need to link using list and APPEND.


2022-09-21 18:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.