fix installation for QuickJS in CI
[liba.git] / cmake / TargetSupportsExecutables.cmake
blob0d6d3e27ca375c9ad17429e2cc59393a702c7671
1 function(TARGET_SUPPORTS_EXECUTABLES)
2   set(CMAKE_REQUIRED_QUIET 1)
3   include(CheckCSourceCompiles)
4   set(CMAKE_TRY_COMPILE_TARGET_TYPE EXECUTABLE)
5   check_c_source_compiles("int main() {}" TARGET_SUPPORTS_EXECUTABLES)
6 endfunction()
7 TARGET_SUPPORTS_EXECUTABLES()