Skip to content

Commit fe307b2

Browse files
committed
s/CMAKE_SOURCE_DIR/PROJECT_SOURCE_DIR/ in library/CMakeLists.txt.
Do so to allow another parent CMake project to be able to successfully call add_subdirectory(clBLAS) on this one.
1 parent 7723845 commit fe307b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ endif()
279279

280280
include( ExternalProject )
281281
ExternalProject_Add( tplgen
282-
URL "${CMAKE_SOURCE_DIR}/library/tools/tplgen"
282+
URL "${PROJECT_SOURCE_DIR}/library/tools/tplgen"
283283
INSTALL_COMMAND ""
284284
)
285285

@@ -294,7 +294,7 @@ endif()
294294

295295
add_custom_target( GENERATE_CLT
296296
COMMAND ${tplgenBinaryDir}/tplgen -o ${clBLAS_BINARY_DIR}/include ${SRC_CL_TEMPLATES}
297-
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/library/blas/gens/clTemplates
297+
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/library/blas/gens/clTemplates
298298
)
299299

300300
add_dependencies( GENERATE_CLT tplgen )

0 commit comments

Comments
 (0)