From 0d07a81aa7accd1c19de1039de3a78996a94697e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20Pep=C3=A8=20Sciarria?= Date: Fri, 11 Apr 2025 11:35:10 +0200 Subject: [PATCH] add PSB_IPK and PSB_LPK compilation flags --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c82aa40a..c624c1a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,16 @@ include_directories(${INCDIR} ${MODDIR} ${LIBDIR}) +message(STATUS "Using IPK size: ${PSB_IPK_SIZE}") +message(STATUS "Using LPK size: ${PSB_LPK_SIZE}") + + +add_compile_options(-DPSB_IPK${PSB_IPK_SIZE}) +add_compile_options(-DPSB_LPK${PSB_LPK_SIZE}) + + + + # Specify the installation directory #set(${CMAKE_INSTALL_LIBDIR} "lib") @@ -140,8 +150,8 @@ if(TRUE )#NOT ${WIN32}) CHECK_TYPE_SIZE("long" LONG_SIZE LANGUAGE C) message(STATUS "INT SIZE ${INT_SIZE}") - add_compile_options(-DIPK${INT_SIZE}) - add_compile_options(-DLPK${LONG_SIZE}) + #add_compile_options(-DIPK${INT_SIZE}) + #add_compile_options(-DLPK${LONG_SIZE}) endif()