@Sinan
Cmake files can be a bit vary , i.e. in one project CFLAGS_CXX/etc can be taken fine (in most), in some - not. That depends of how CMakeFile's for were done.
Usually, when cmake files in app/game done correctly, it will be something like this:
cd game_dir
mkdir build
cd build
cmake \
-DCMAKE_SYSTEM_NAME=Generic \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-mcrt=clib2" \
-DCMAKE_CXX_FLAGS="-mcrt=clib2" \
-DCMAKE_C_COMPILER="/usr/local/amiga/bin/ppc-amigaos-gcc" \
-DCMAKE_CXX_COMPILER="/usr/local/amiga/bin/ppc-amigaos-g++" \
-DCMAKE_LINKER="/usr/local/amiga/bin/ppc-amigaos-ld" \
-DCMAKE_AR="/usr/local/amiga/bin/ppc-amigaos-ar" \
-DCMAKE_RANLIB="/usr/local/amiga/bin/ppc-amigaos-ranlib" \
-DCMAKE_FIND_ROOT_PATH="/usr/local/amiga/ppc-amigaos/" \
..
Things like "-DAMIGAOS4=1" is in use only if in CMakelist.txt you do have "AMIGAOS" thing in which, when this -DAMIGAOS4=1 is set, you do what you need (like add/remove some flags, options, etc which you can from CMake options on running). But "AMIGAOS4" is of course just anything you choose, you can do "-DOMEGA1200=1" , and in main CMakeList.txt add that define.
I for myself didn't use "RUN_IN_PLACE" , so not sure if it default CMake option or not, but when things ported, it anyway always "in place" :)
Most problem is DCMAKE_C_FLAGS and DCMAKE_CXX_FLAGS which not always taken into account, so you may need manually fix CMakeFile to add -mcrt=clib2 where need it, or, alternatively when you build makefiles via cmake, then inside of "flags.txt" and "link.txt" change all you need manually
Edited by kas1e on 2022/9/21 6:16:43
Edited by kas1e on 2022/9/21 6:17:49