raylib/cmake
Peter0x44 74350fa7cf
[build] CMake: Delete BuildOptions.cmake (#4277)
This file seems to not do anything useful. From what I can tell the
OSX_FATLIB option sets CMAKE_OSX_ARCHITECTURES to "x86_64;i386". This
doesn't account for the arm that apple now has, as well as 32 bit
support being completely removed, and I think it's entirely reasonable
to expect users to pass the necessary architectures they want
themselves. It's possible this could break some users who rely on this,
but I sincerely doubt anyone does. The solution is trivial either way
(put -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" on the command line
yourself)

The second part of BuildOptions.cmake claims to set PLATFORM to "Web" if
the emscripten toolchain file is used (if (EMSCRIPTEN)), but it does not
work correctly anyway. Currently, glfw searches for wayland and x11
libraries and fails likeso:

CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:645 (message):
  The following required packages were not found:
   - wayland-client>=0.2.7
   - wayland-cursor>=0.2.7
   - wayland-egl>=0.2.7
   - xkbcommon>=0.5.0

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
  src/external/glfw/src/CMakeLists.txt:163 (pkg_check_modules)

Considering this code doesn't work as described, it's okay to delete it.
I think a better check should be implemented, but that is for a
different PR.
2024-08-23 22:21:22 +02:00
..
AddIfFlagCompiles.cmake CMake: Move reusable code to new cmake/ directory 2018-05-21 01:08:29 +02:00
CompileDefinitions.cmake Removes the redundant USE_AUDIO flag (#4158) 2024-07-16 14:16:41 +02:00
CompilerFlags.cmake Documentation cmake (#1549) 2021-01-26 14:34:27 +01:00
EnumOption.cmake CMake: Fail when -D{PLATFORM,OPENGL_VERSION}=INVALID_VALUE 2018-07-23 21:00:48 +02:00
GlfwImport.cmake CMake: Remove USE_WAYLAND option (#3851) 2024-03-04 19:59:26 +01:00
InstallConfigurations.cmake Fix CMake extraneous -lglfw (#3266) 2023-08-27 15:43:39 +02:00
JoinPaths.cmake Add join_paths and join prefix with include/lib dirs (#1383) 2020-09-25 16:20:49 +02:00
LibraryConfigurations.cmake [build] CMake: support OpenGL ES3 in `LibraryConfigurations.cmake` (#4079) 2024-06-21 09:07:01 +02:00
LibraryPathToLinkerFlags.cmake CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
PackConfigurations.cmake Add packaging for distros with deb- and rpm-based packages. (#2877) 2023-01-21 18:50:38 +01:00
ParseConfigHeader.cmake [build] Making `config.h` fully available to CMake users (#4044) 2024-06-16 10:49:59 +02:00
PopulateConfigVariablesLocally.cmake CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
Uninstall.cmake [build]: add uninstall cmake target (#3511) 2023-11-06 10:12:36 +01:00
raylib-config-version.cmake CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
raylib-config.cmake add: cmake config include guard (#2592) 2022-07-26 14:28:26 +02:00