From fec8637312872ab10bf0ac408b191dff13bebf12 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 21 May 2021 10:15:09 +0200 Subject: [PATCH] cmake: link with OpenLibm Once the FxLibc gets a CMake module this will be automatic. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f303f27..102311e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,8 +47,10 @@ add_executable(fxlibctest ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}}) target_compile_options(fxlibctest PRIVATE -Wall -Wextra -Os -fmacro-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}/src/=) target_link_options(fxlibctest PRIVATE -Wl,-Map=map -Wl,--print-memory-usage) -target_include_directories(fxlibctest PRIVATE include/) -target_link_libraries(fxlibctest JustUI::JustUI Gint::Gint -lc) +target_include_directories(fxlibctest PRIVATE + include/ + "${FXSDK_COMPILER_INSTALL}/include/openlibm/") +target_link_libraries(fxlibctest JustUI::JustUI Gint::Gint -lc -lopenlibm) foreach(FOLDER IN LISTS FXLIBC_INSTALL) target_include_directories(fxlibctest PRIVATE "${FOLDER}/include")