cmake HAVE_POSIX_SPAWN examples

securesystemslab/multicompiler cmake/config-ix.cmake :170

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

Lewuathe/mlir-hello thirdparty/llvm-project/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :22

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

Lewuathe/mlir-hello thirdparty/llvm-project/llvm/cmake/config-ix.cmake :334

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

microsoft/DirectXShaderCompiler cmake/config-ix.cmake :165

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

ComputationalBiomechanicsLab/opensim-creator third_party/SDL/CMakeLists.txt :2958

check_c_source_compiles("
#include <spawn.h>
#include <unistd.h>

int main(void)
{
    int pipes[2];
    int pid;

    const char * args[] = {
      \"/bin/false\",
      NULL
    };

    const char * env[] = { NULL };

    pipe(pipes);

    posix_spawnattr_t attr;
    posix_spawn_file_actions_t fa;

    posix_spawnattr_init(&attr);
    posix_spawn_file_actions_init(&fa);

    posix_spawn_file_actions_addclose(&fa, pipes[0]);
    posix_spawn_file_actions_adddup2(&fa, pipes[1], STDOUT_FILENO);

    posix_spawn(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);
    posix_spawnp(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);

    posix_spawn_file_actions_destroy(&fa);
    posix_spawnattr_destroy(&attr);

    return 0;
}
" HAVE_POSIX_SPAWN)

GoSSIP-SJTU/TripleDoggy cmake/config-ix.cmake :204

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

GoSSIP-SJTU/TripleDoggy tools/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :26

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

tanis2000/binocle-c src/deps/sdl/CMakeLists.txt :2948

check_c_source_compiles("
#include <spawn.h>
#include <unistd.h>

int main(void)
{
    int pipes[2];
    int pid;

    const char * args[] = {
      \"/bin/false\",
      NULL
    };

    const char * env[] = { NULL };

    pipe(pipes);

    posix_spawnattr_t attr;
    posix_spawn_file_actions_t fa;

    posix_spawnattr_init(&attr);
    posix_spawn_file_actions_init(&fa);

    posix_spawn_file_actions_addclose(&fa, pipes[0]);
    posix_spawn_file_actions_adddup2(&fa, pipes[1], STDOUT_FILENO);

    posix_spawn(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);
    posix_spawnp(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);

    posix_spawn_file_actions_destroy(&fa);
    posix_spawnattr_destroy(&attr);

    return 0;
}
" HAVE_POSIX_SPAWN)

qtfreet00/llvm-obfuscator cmake/config-ix.cmake :202

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

qtfreet00/llvm-obfuscator tools/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :26

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

llvm-dcpu16/llvm-dcpu16 cmake/config-ix.cmake :130

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

mxcop/src-dgi extern/sdl/CMakeLists.txt :2883

check_c_source_compiles("
#include <spawn.h>
#include <unistd.h>

int main(void)
{
    int pipes[2];
    int pid;

    const char * args[] = {
      \"/bin/false\",
      NULL
    };

    const char * env[] = { NULL };

    pipe(pipes);

    posix_spawnattr_t attr;
    posix_spawn_file_actions_t fa;

    posix_spawnattr_init(&attr);
    posix_spawn_file_actions_init(&fa);

    posix_spawn_file_actions_addclose(&fa, pipes[0]);
    posix_spawn_file_actions_adddup2(&fa, pipes[1], STDOUT_FILENO);

    posix_spawn(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);
    posix_spawnp(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);

    posix_spawn_file_actions_destroy(&fa);
    posix_spawnattr_destroy(&attr);

    return 0;
}
" HAVE_POSIX_SPAWN)

GoSSIP-SJTU/Armariris cmake/config-ix.cmake :190

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

GoSSIP-SJTU/Armariris tools/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :26

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

ucb-bar/esp-llvm cmake/config-ix.cmake :190

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

keystone-engine/keystone llvm/cmake/config-ix.cmake :168

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

root-project/root interpreter/llvm-project/llvm/cmake/config-ix.cmake :299

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

Warzone2100/warzone2100 CMakeLists.txt :837

CHECK_CXX_SYMBOL_EXISTS(posix_spawn "spawn.h" HAVE_POSIX_SPAWN)

o2e/OLLVM-9.0.1 cmake/config-ix.cmake :221

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

o2e/OLLVM-9.0.1 tools/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :26

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

google/filament third_party/dawn/third_party/dxc/cmake/config-ix.cmake :165

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

yrnkrn/zapcc cmake/config-ix.cmake :237

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

yrnkrn/zapcc tools/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :26

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

frasercrmck/llvm-leg cmake/config-ix.cmake :169

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

godlikepanos/anki-3d-engine ThirdParty/Sdl3/CMakeLists.txt :2958

check_c_source_compiles("
#include <spawn.h>
#include <unistd.h>

int main(void)
{
    int pipes[2];
    int pid;

    const char * args[] = {
      \"/bin/false\",
      NULL
    };

    const char * env[] = { NULL };

    pipe(pipes);

    posix_spawnattr_t attr;
    posix_spawn_file_actions_t fa;

    posix_spawnattr_init(&attr);
    posix_spawn_file_actions_init(&fa);

    posix_spawn_file_actions_addclose(&fa, pipes[0]);
    posix_spawn_file_actions_adddup2(&fa, pipes[1], STDOUT_FILENO);

    posix_spawn(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);
    posix_spawnp(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);

    posix_spawn_file_actions_destroy(&fa);
    posix_spawnattr_destroy(&attr);

    return 0;
}
" HAVE_POSIX_SPAWN)

RavEngine/RavEngine deps/SDL/CMakeLists.txt :2958

check_c_source_compiles("
#include <spawn.h>
#include <unistd.h>

int main(void)
{
    int pipes[2];
    int pid;

    const char * args[] = {
      \"/bin/false\",
      NULL
    };

    const char * env[] = { NULL };

    pipe(pipes);

    posix_spawnattr_t attr;
    posix_spawn_file_actions_t fa;

    posix_spawnattr_init(&attr);
    posix_spawn_file_actions_init(&fa);

    posix_spawn_file_actions_addclose(&fa, pipes[0]);
    posix_spawn_file_actions_adddup2(&fa, pipes[1], STDOUT_FILENO);

    posix_spawn(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);
    posix_spawnp(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);

    posix_spawn_file_actions_destroy(&fa);
    posix_spawnattr_destroy(&attr);

    return 0;
}
" HAVE_POSIX_SPAWN)

NVIDIA/MDL-SDK src/mdl/jit/llvm/dist/cmake/config-ix.cmake :238

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

yazhiwang/ollvm-tll cmake/config-ix.cmake :237

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

yazhiwang/ollvm-tll tools/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :26

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

KhronosGroup/SPIRV-LLVM cmake/config-ix.cmake :175

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

GANGE666/xVMP src/cmake/config-ix.cmake :209

check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)

GANGE666/xVMP src/tools/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt :26

check_function_exists(posix_spawn HAVE_POSIX_SPAWN)

cvet/fonline ThirdParty/SDL/CMakeLists.txt :2958

check_c_source_compiles("
#include <spawn.h>
#include <unistd.h>

int main(void)
{
    int pipes[2];
    int pid;

    const char * args[] = {
      \"/bin/false\",
      NULL
    };

    const char * env[] = { NULL };

    pipe(pipes);

    posix_spawnattr_t attr;
    posix_spawn_file_actions_t fa;

    posix_spawnattr_init(&attr);
    posix_spawn_file_actions_init(&fa);

    posix_spawn_file_actions_addclose(&fa, pipes[0]);
    posix_spawn_file_actions_adddup2(&fa, pipes[1], STDOUT_FILENO);

    posix_spawn(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);
    posix_spawnp(&pid, args[0], &fa, &attr, (char * const *) args, (char * const *) env);

    posix_spawn_file_actions_destroy(&fa);
    posix_spawnattr_destroy(&attr);

    return 0;
}
" HAVE_POSIX_SPAWN)