diff --git a/userspace/libraries/CMakeLists.txt b/userspace/libraries/CMakeLists.txt index 4a929dd0..97b7c210 100644 --- a/userspace/libraries/CMakeLists.txt +++ b/userspace/libraries/CMakeLists.txt @@ -23,7 +23,7 @@ foreach(library ${USERSPACE_LIBRARIES}) # This is to allow cmake to link when libc updates target_link_options(${library_lower} PRIVATE -nolibc) # Default compile options - target_compile_options(${library_lower} PRIVATE -g -O2 -Wall -Wextra -Werror) + target_compile_options(${library_lower} PRIVATE -g -O2 -Wall -Wextra -Werror -msse -msse2) # set SONAME as cmake doesn't set it for some reason?? set_target_properties(${library_lower} PROPERTIES LINK_FLAGS "-Wl,-soname,${library_lower}.so") diff --git a/userspace/programs/CMakeLists.txt b/userspace/programs/CMakeLists.txt index 288bbc05..b5e472bd 100644 --- a/userspace/programs/CMakeLists.txt +++ b/userspace/programs/CMakeLists.txt @@ -57,5 +57,5 @@ foreach(project ${USERSPACE_PROGRAMS}) # This is to allow cmake to link when libc updates target_link_options(${project} PRIVATE -nolibc) # Default compile options - target_compile_options(${project} PRIVATE -g -O2 -Wall -Wextra -Werror) + target_compile_options(${project} PRIVATE -g -O2 -Wall -Wextra -Werror -msse -msse2) endforeach()