File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ if(SDL_SHARED)
448
448
add_library (SDL3-shared SHARED )
449
449
add_library (SDL3::SDL3-shared ALIAS SDL3-shared )
450
450
SDL_AddCommonCompilerFlags (SDL3-shared )
451
+ set_property (TARGET SDL3-shared PROPERTY UNITY_BUILD OFF )
451
452
if ("c_std_99" IN_LIST CMAKE_C_COMPILE_FEATURES )
452
453
target_compile_features (SDL3-shared PRIVATE c_std_99 )
453
454
else ()
@@ -459,6 +460,7 @@ if(SDL_STATIC)
459
460
add_library (SDL3-static STATIC )
460
461
add_library (SDL3::SDL3-static ALIAS SDL3-static )
461
462
SDL_AddCommonCompilerFlags (SDL3-static )
463
+ set_property (TARGET SDL3-static PROPERTY UNITY_BUILD OFF )
462
464
if ("c_std_99" IN_LIST CMAKE_C_COMPILE_FEATURES )
463
465
target_compile_features (SDL3-static PRIVATE c_std_99 )
464
466
else ()
@@ -1228,6 +1230,7 @@ target_include_directories(SDL_uclibc PRIVATE "${SDL3_SOURCE_DIR}/src")
1228
1230
target_include_directories (SDL_uclibc PRIVATE "${SDL3_SOURCE_DIR} /include" )
1229
1231
SDL_AddCommonCompilerFlags (SDL_uclibc )
1230
1232
sdl_sources (STATIC "$<TARGET_OBJECTS:SDL_uclibc>" )
1233
+ set_property (TARGET SDL_uclibc PROPERTY UNITY_BUILD OFF )
1231
1234
if (TARGET SDL3-shared )
1232
1235
target_link_libraries (SDL3-shared PRIVATE SDL_uclibc )
1233
1236
endif ()
You can’t perform that action at this time.
0 commit comments