Skip to content

Commit

Permalink
Fix TPL_LIBRARY_SUFFIXES for 32-bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed May 6, 2024
1 parent cf59f31 commit 7b8e3a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/kokkos_functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,12 @@ MACRO(kokkos_find_imported NAME)
ENDIF()

IF (NOT TPL_LIBRARY_SUFFIXES)
SET(TPL_LIBRARY_SUFFIXES lib lib64)
SET(TPL_LIBRARY_SUFFIXES lib)
IF(KOKKOS_IMPL_32BIT)
LIST(APPEND TPL_LIBRARY_SUFFIXES lib32)
ELSE()
LIST(APPEND TPL_LIBRARY_SUFFIXES lib64)
ENDIF()
ENDIF()

SET(${NAME}_INCLUDE_DIRS)
Expand Down

0 comments on commit 7b8e3a6

Please sign in to comment.