fluidsynth/cmake_admin/TestVLA.cmake

10 lines
280 B
CMake
Raw Normal View History

2010-07-15 21:02:00 +00:00
include ( CheckCSourceCompiles )
if ( NOT SUPPORTS_VLA )
check_c_source_compiles (
"int main(int argc, char *argv[]){int arr[argc]; return 0;}"
_have_vla )
if ( _have_vla )
set ( SUPPORTS_VLA 1 )
endif ( _have_vla )
endif ( NOT SUPPORTS_VLA )