fluidsynth/cmake_admin/TestVLA.cmake
derselbst aac2354f5c remove fop-level "fluidsynth" directory node
cd fluidsynth && git mv * ../
2017-09-03 13:30:26 +02:00

9 lines
280 B
CMake

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 )