Skip to content

Commit

Permalink
Fix bug in setting PORTBLAS_SRC
Browse files Browse the repository at this point in the history
INSTALL_HEADER_ONLY and normal compilation configuration need a
different value for it.
  • Loading branch information
s-Nick committed Apr 23, 2024
1 parent 2c52406 commit b2297a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ set(PORTBLAS_GENERATED_SRC ${CMAKE_CURRENT_BINARY_DIR}/generated_src)
set(PORTBLAS_INCLUDE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
set(PORTBLAS_COMMON_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/common/include)
set(PORTBLAS_SRC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src> $<INSTALL_INTERFACE:src>)
if(INSTALL_HEADER_ONLY)
set(PORTBLAS_SRC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src> $<INSTALL_INTERFACE:src>)
else()
set(PORTBLAS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src)
endif()
set(PORTBLAS_SRC_GENERATOR ${CMAKE_CURRENT_SOURCE_DIR}/python_generator)
list(APPEND THIRD_PARTIES_INCLUDE ${CBLAS_INCLUDE})

Expand Down

0 comments on commit b2297a9

Please sign in to comment.