Skip to content

Commit

Permalink
Require SSE4.1 in CMake flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
afritz1 committed Nov 9, 2019
1 parent c344f33 commit 2451a34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ IF (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
IF (NOT WIN32 AND NOT APPLE)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")

# Optimizations.
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")

SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lpthread -pthread")
ENDIF ()
ENDIF ()
Expand Down

0 comments on commit 2451a34

Please sign in to comment.