mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-05-03 22:31:03 +00:00
10 lines
285 B
CMake
10 lines
285 B
CMake
|
include ( CheckCSourceCompiles )
|
||
|
if ( NOT SUPPORTS_VLA )
|
||
|
check_c_source_compiles (
|
||
|
"int main(int argc, char *argv[]){int arr[argc]; return arr[0];}"
|
||
|
_have_vla )
|
||
|
if ( _have_vla )
|
||
|
set ( SUPPORTS_VLA 1 )
|
||
|
endif ( _have_vla )
|
||
|
endif ( NOT SUPPORTS_VLA )
|