Fox1942
Fox1942

Reputation: 366

What is the default folder for cmake to search for libraries in Linux?

If I give some libraries in target_link_libraries (like GL, Glfw, glew), what is the default place, where cmake search for these libs?

For example:

target_link_libraries(aplication GL glfw GLEW)

Does Cmake search for these libs in the Path environment variable in Linux? Where can I find these libs?

Upvotes: 1

Views: 814

Answers (1)

KamilCuk
KamilCuk

Reputation: 140970

From cmake target_link_libraries:

A plain library name: The generated link line will ask the linker to search for the library (e.g. foo becomes -lfoo or foo.lib).

Just to point you in the right direction as to what are the standard linker search paths, this post on unix.stackexchange explains it.

Upvotes: 1

Related Questions