diff options
author | Sam Lantinga <slouken@libsdl.org> | 2017-12-11 12:00:12 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2017-12-11 12:00:12 -0800 |
commit | a2120735b57e111fa538d08c5c506819194e9b50 (patch) | |
tree | b942e49255ec2205e02a79f2c95fea23530ba5bc /CMakeLists.txt | |
parent | ac167a144fbf04fda8b0de4505d77f79f63d100d (diff) |
Check for immintrin.h before using it in SDL_cpuinfo.h
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bfda8a1c23..aa5cc0cc6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -580,6 +580,8 @@ if(ASSEMBLY) endif() endif() + check_include_file("immintrin.h" HAVE_IMMINTRIN_H) + if(ALTIVEC) set(CMAKE_REQUIRED_FLAGS "-maltivec") check_c_source_compiles(" |