From 8f7799dbd5cfbae58e3fd0cca5d6d58953fd4b67 Mon Sep 17 00:00:00 2001 From: Lephe Date: Tue, 25 May 2021 21:27:25 +0200 Subject: [PATCH] cmake: add interface flags for OpenLibm and the libc Known limitation: OpenLibm can't be installed out of the compiler prefix yet (because of that pesky openlibm/ prefix that it installs to but does not use when including). --- cmake/FindGint.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindGint.cmake b/cmake/FindGint.cmake index 56d51cb..7ec8bfc 100644 --- a/cmake/FindGint.cmake +++ b/cmake/FindGint.cmake @@ -45,12 +45,12 @@ if(Gint_FOUND) if(NOT TARGET Gint::Gint) add_library(Gint::Gint UNKNOWN IMPORTED) endif() - # No include directory or library path to specify, GCC handles that set_target_properties(Gint::Gint PROPERTIES IMPORTED_LOCATION "${GINT_PATH}" INTERFACE_COMPILE_OPTIONS -fstrict-volatile-bitfields INTERFACE_COMPILE_DEFINITIONS "${INTF_DEFN}" - INTERFACE_LINK_LIBRARIES "-lopenlibm;-lgcc" + INTERFACE_INCLUDE_DIRECTORIES "${FXSDK_COMPILER_INSTALL}/include/openlibm" + INTERFACE_LINK_LIBRARIES "-lc;-lopenlibm;-lgcc" INTERFACE_LINK_OPTIONS "${INTF_LINK}" ) endif()