Skip to content

Commit

Permalink
Merge pull request #413 from drmpeg/submodule-fix
Browse files Browse the repository at this point in the history
cmake: Ensure that cpu_features is built as a static library.
  • Loading branch information
michaelld authored Nov 9, 2020
2 parents d838ba7 + 870bd02 commit dbdeb26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ endif(MSVC)
set(BUILD_PIC ON CACHE BOOL
"Build cpu_features with Position Independent Code (PIC)."
FORCE)
set(BUILD_SHARED_LIBS_SAVED "${BUILD_SHARED_LIBS}")
set(BUILD_SHARED_LIBS OFF)
add_subdirectory(cpu_features)
set(BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS_SAVED}")

# Python
include(VolkPython) #sets PYTHON_EXECUTABLE and PYTHON_DASH_B
Expand Down

0 comments on commit dbdeb26

Please sign in to comment.