this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use a more compiler-specific header...

...for the compiler include path detection

This fixes include issues with musl libc

+4 -4
+4 -4
cmake/compiler_include.cmake
··· 1 1 # Detect the location of compiler-specific header files 2 2 # such as stdbool.h or xmmintrin.h 3 3 function(GetCompilerInclude OutputVar) 4 - file(WRITE "${CMAKE_BINARY_DIR}/cinctest.c" "#include <stdbool.h>") 4 + file(WRITE "${CMAKE_BINARY_DIR}/cinctest.c" "#include <cpuid.h>") 5 5 execute_process(COMMAND "${CMAKE_C_COMPILER}" -M "${CMAKE_BINARY_DIR}/cinctest.c" 6 6 RESULT_VARIABLE BuildResult 7 7 OUTPUT_VARIABLE BuildOutput ··· 17 17 string(REGEX REPLACE "\n$" "" str "${str}") 18 18 # message(STATUS "Output: ${str}") 19 19 20 - if (str MATCHES "stdbool.h$") 20 + if (str MATCHES "cpuid.h$") 21 21 # message(STATUS "Str matched: ${str}") 22 - string(REGEX REPLACE "stdbool\\.h" "" IncPath "${str}") 23 - endif (str MATCHES "stdbool.h$") 22 + string(REGEX REPLACE "cpuid\\.h" "" IncPath "${str}") 23 + endif (str MATCHES "cpuid.h$") 24 24 endforeach (str) 25 25 26 26 if (NOT IncPath)