diff options
| author | hristo <[email protected]> | 2021-01-25 11:47:53 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-25 10:47:53 +0100 |
| commit | f3ce3a6f741fdf02eb602e2d7df7b14951f4aa65 (patch) | |
| tree | 462062c18ed0f91ed9c7ff8d5a96ec27086c569b /src/CMakeLists.txt | |
| parent | 4bf7b00013f7efe222d02171e176bb827a90fad9 (diff) | |
| download | raylib-f3ce3a6f741fdf02eb602e2d7df7b14951f4aa65.tar.gz raylib-f3ce3a6f741fdf02eb602e2d7df7b14951f4aa65.zip | |
Removing config.h.in file (#1546)
CMake relied on this file for configurations and also was interfering in the regular config.h by having a separate definition if building with CMake. This was not entirely correct so instead we will define compile time definitions separately through CMake (CompileDefinitions.cmake) and also will use the provided EXTERNAL_CONFIG_FLAGS that I found that will not use config.h in through the build process.
I also introduced a new compiler option (CUSTOMIZE_BUILD) that when OFF will use the default config.h and when ON will show other options for redefining your own options.
Fixed an error in rlgl.h where if you have both RLGL_STANDALONE and SUPPORT_VR_SIMULATOR you get a compile time error.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a11f4efb..bcef058b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -83,11 +83,7 @@ if (${PLATFORM} MATCHES "Desktop") target_link_libraries(raylib glfw) endif () -# Adding compile definitions -target_compile_definitions(raylib - PUBLIC "${PLATFORM_CPP}" - PUBLIC "${GRAPHICS}" - ) +include(CompileDefinitions) # Registering include directories target_include_directories(raylib @@ -96,7 +92,6 @@ target_include_directories(raylib $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_BINARY_DIR} # For cmake/config.h ${OPENGL_INCLUDE_DIR} ${OPENAL_INCLUDE_DIR} ) |
