Mercurial > molko
changeset 353:975bd174a3b1
cmake: conditionally add M_LIBRARY
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 21 Oct 2021 08:23:50 +0200 |
parents | 1c18b584e2cb |
children | 2dbe1cf6b544 |
files | src/libmlk-core/CMakeLists.txt src/libmlk-rpg/CMakeLists.txt |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/libmlk-core/CMakeLists.txt Wed Oct 20 18:33:22 2021 +0200 +++ b/src/libmlk-core/CMakeLists.txt Thu Oct 21 08:23:50 2021 +0200 @@ -110,6 +110,10 @@ list(APPEND LIBRARIES shlwapi) endif () +if (M_LIBRARY) + list(APPEND LIBRARIES ${M_LIBRARY}) +endif () + mlk_library( NAME libmlk-core SOURCES ${SOURCES} ${NLS} @@ -117,7 +121,6 @@ LIBRARIES PUBLIC ${LIBRARIES} - ${M_LIBRARY} SDL2::SDL2 SDL2::image SDL2::ttf