Renaming CMAKE_SOURCE_DIR to PROJECT_SOURCE_DIR so that BLIS can be built properly via FetchContent() (#65)

This commit is contained in:
Vlachopoulou, Eleni
2025-08-07 15:51:59 +01:00
committed by GitHub
parent 563b161933
commit 1f8a7d2218
19 changed files with 68 additions and 68 deletions

View File

@@ -46,7 +46,7 @@ else()
endif()
# Include the corresponding make_defs.cmake that holds the required compiler options.
include(${CMAKE_SOURCE_DIR}/config/${BLIS_CONFIG_FAMILY}/make_defs.cmake)
include(${PROJECT_SOURCE_DIR}/config/${BLIS_CONFIG_FAMILY}/make_defs.cmake)
# Gather all local source files.
file(GLOB testcpp_sources LIST_DIRECTORIES false ${CMAKE_CURRENT_SOURCE_DIR}/*.cc)
@@ -81,7 +81,7 @@ foreach(source ${testcpp_sources})
${CINFLAGS}
# Add local header paths
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/vendor/cpp
${PROJECT_SOURCE_DIR}/vendor/cpp
)
target_link_libraries(${exec_name} PRIVATE ${LDFLAGS} ${libblis_link})
if(THREADING_MODEL STREQUAL "openmp")