From decae031ae82850dd9e1a0e1781440dce6424546 Mon Sep 17 00:00:00 2001 From: tobid7 Date: Sat, 23 Aug 2025 20:02:33 +0200 Subject: [PATCH] Small Fix - Make target compile definitions private (cause its only for them this fixes errors when using in projects that have c source files --- cmake/palladium.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/palladium.cmake b/cmake/palladium.cmake index 9e723f9..1c8de35 100755 --- a/cmake/palladium.cmake +++ b/cmake/palladium.cmake @@ -37,13 +37,18 @@ function(pd_add_lib TARGET_NAME) ${PD_INCLUDE_DIR} ${DEVKITPRO}/portlibs/3ds/include ) - target_compile_definitions(${TARGET_NAME} PUBLIC + target_compile_definitions(${TARGET_NAME} PRIVATE -D_GNU_SOURCE=1 -DPALLADIUM_VERSION="${PROJECT_VERSION}" -DPALLADIUM_GIT_COMMIT="${GIT_SHORT_HASH}" -DPALLADIUM_GIT_BRANCH="${GIT_BRANCH}" -DBUILD_CTR=1 ) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Nintendo3DS") + target_compile_options(${TARGET_NAME} PRIVATE + -Wno-abi + ) + endif() ### For the libs that depend on another if(ARG_DEPENDS) target_link_libraries(${TARGET_NAME} PUBLIC ${ARG_DEPENDS})