search for: check_c_compiler_flag

Displaying 4 results from an estimated 4 matches for "check_c_compiler_flag".

2020 Sep 22
2
Unifying CMake variable names used in checks across subprojects
...for a while now and we're very happy with it. However, with an increasing number of targets, it can be fairly slow and I have noticed that we now spend more time in CMake than in Ninja. There are various ways we could improve things like eliminating unnecessary checks. When running checks like check_c_compiler_flag, check_cxx_compiler_flag or check_library_exists, CMake caches the resulting variable and doesn't run the check again. The problem is that in LLVM, each subproject uses different variable names for results of these checks. For example, most subprojects check if pthread is available and store th...
2020 Sep 22
2
Unifying CMake variable names used in checks across subprojects
...e now and we're very happy with it. However, with an increasing number of targets, it can be fairly slow and I have noticed that we now spend more time in CMake than in Ninja. There are various ways we could improve things like eliminating unnecessary checks. > > When running checks like check_c_compiler_flag, check_cxx_compiler_flag or check_library_exists, CMake caches the resulting variable and doesn't run the check again. The problem is that in LLVM, each subproject uses different variable names for results of these checks. For example, most subprojects check if pthread is available and store th...
2020 Sep 25
2
Unifying CMake variable names used in checks across subprojects
...d we're very happy with it. However, with an increasing number of targets, it can be fairly slow and I have noticed that we now spend more time in CMake than in Ninja. There are various ways we could improve things like eliminating unnecessary checks. >> >> When running checks like check_c_compiler_flag, check_cxx_compiler_flag or check_library_exists, CMake caches the resulting variable and doesn't run the check again. The problem is that in LLVM, each subproject uses different variable names for results of these checks. For example, most subprojects check if pthread is available and store th...
2017 May 29
0
[PATCH] Add CMake build script
...6 TRUE) +else() + set(CPU_IS_X86 FALSE) +endif() +if(CPU_IS_X86) + check_include_file(xmmintrin.h HAVE_XMMINTRIN_H) +endif() +cmake_dependent_option(ENABLE_SSE "Enable SSE support" ON "CPU_IS_X86;HAVE_XMMINTRIN_H;ENABLE_FLOATING_POINT" OFF) +if(ENABLE_SSE) + set(_USE_SSE 1) + check_c_compiler_flag("/arch:SSE" ARCH_SSE_FLAG) + if(ARCH_SSE_FLAG) + set(SSE_FLAGS "/arch:SSE") + else() + check_c_compiler_flag("-msse" MSSE_FLAG) + if(MSSE_FLAG) + set(SSE_FLAGS "-msse") + endif() + endif() +endif() + +if (CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")...