File: TestVLA.cmake

package info (click to toggle)
fluidsynth 2.4.4%2Bdfsg-1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,328 kB
  • sloc: ansic: 43,529; cpp: 1,434; xml: 1,020; makefile: 71; sh: 46
file content (9 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
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 )