comparison CMakeLists.txt @ 351:955e2f45ba8a

cmake: fix math library
author David Demelier <markand@malikania.fr>
date Wed, 20 Oct 2021 16:31:39 +0200
parents 7d7991f97acf
children 39f5d932941a
comparison
equal deleted inserted replaced
350:66ad82bc592a 351:955e2f45ba8a
52 52
53 include(GNUInstallDirs) 53 include(GNUInstallDirs)
54 54
55 find_package(SDL2 REQUIRED COMPONENTS image mixer ttf) 55 find_package(SDL2 REQUIRED COMPONENTS image mixer ttf)
56 find_package(Jansson REQUIRED) 56 find_package(Jansson REQUIRED)
57
58 # POSIX math library isn't available everywhere.
59 find_library(M_LIBRARY m)
57 60
58 configure_file( 61 configure_file(
59 ${molko_SOURCE_DIR}/src/config.h.in 62 ${molko_SOURCE_DIR}/src/config.h.in
60 ${molko_BINARY_DIR}/src/config.h 63 ${molko_BINARY_DIR}/src/config.h
61 ) 64 )