mirror of https://github.com/libsdl-org/SDL
cmake: disallow '#include "SDL.h"'
This commit is contained in:
parent
f2e3437311
commit
e10207e831
|
@ -3218,7 +3218,6 @@ target_include_directories(SDL3_Headers
|
|||
INTERFACE
|
||||
"$<BUILD_INTERFACE:${SDL3_BINARY_DIR}/include>"
|
||||
"$<BUILD_INTERFACE:${SDL3_SOURCE_DIR}/include>"
|
||||
"$<BUILD_INTERFACE:${SDL3_SOURCE_DIR}/include/SDL3>"
|
||||
)
|
||||
if(SDL_FRAMEWORK)
|
||||
target_include_directories(SDL3_Headers
|
||||
|
@ -3234,7 +3233,6 @@ else()
|
|||
target_include_directories(SDL3_Headers
|
||||
INTERFACE
|
||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/SDL3>"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -41,8 +41,6 @@ add_feature_info("TEST_FULL" TEST_FULL "Build full SDL testsuite")
|
|||
find_package(SDL3 REQUIRED CONFIG COMPONENTS Headers)
|
||||
add_library(headers_test_slash OBJECT inc_sdl_slash.c)
|
||||
target_link_libraries(headers_test_slash PRIVATE SDL3::Headers)
|
||||
add_library(headers_test_noslash OBJECT inc_sdl_noslash.c)
|
||||
target_link_libraries(headers_test_noslash PRIVATE SDL3::Headers)
|
||||
|
||||
if(TEST_SHARED)
|
||||
find_package(SDL3 REQUIRED CONFIG COMPONENTS SDL3-shared)
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#include "SDL.h"
|
||||
#include "SDL_main.h"
|
||||
|
||||
void inc_sdl_noslash(void) {
|
||||
SDL_SetMainReady();
|
||||
SDL_Init(0);
|
||||
SDL_Quit();
|
||||
}
|
Loading…
Reference in New Issue