build: use CMAKE_DL_LIBS instead of -ldl
authormyfreeweb <greg@unrelenting.technology>
Thu, 4 Jul 2019 16:56:54 +0000 (19:56 +0300)
committerLenny Komow <lenny@lunarg.com>
Fri, 5 Jul 2019 16:54:15 +0000 (10:54 -0600)
commit17d268725543d3a6132530db48b8271d82d97328
tree8a0ca12f92bc60533b7df1c88d637a5f87e658c6
parentf157e126c34ae7f754c8d63da1172d9090f22a69
build: use CMAKE_DL_LIBS instead of -ldl

e.g. FreeBSD does not use an extra library for dynamic loading, everything is in libc.

CMake provides the CMAKE_DL_LIBS variable to handle this. Use it.
loader/CMakeLists.txt