mirror of
https://github.com/amd/blis.git
synced 2026-04-20 15:48:50 +00:00
Renaming CMAKE_SOURCE_DIR to PROJECT_SOURCE_DIR so that BLIS can be built properly via FetchContent() (#65)
This commit is contained in:
committed by
GitHub
parent
563b161933
commit
1f8a7d2218
4
vendor/testcpp/CMakeLists.txt
vendored
4
vendor/testcpp/CMakeLists.txt
vendored
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user