Skip to content

Commit 438c35e

Browse files
committed
More verbose Cmake
1 parent b860361 commit 438c35e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ check_library_exists("libtensorflow.so" "" "" tensorflow_systemwide)
2424
set(INSTALL_HEADERS "src/Tensor.h;src/Model.h")
2525

2626
if (tensorflow_systemwide)
27+
message(STATUS "Looking for tensorflow systemwide")
2728
set(LIBS tensorflow)
2829
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
2930
foreach(dir ${dirs})
3031
message(STATUS "dir='${dir}'")
3132
include_directories(${CMAKE_PROJECT_NAME} PRIVATE SYSTEM dirs/tensorflow/c)
3233
endforeach()
33-
3434
else()
35+
message(STATUS "Looking for tensorflow in ${CMAKE_SOURCE_DIR}/libtensorflow/lib/")
3536
set(LIBS ${CMAKE_SOURCE_DIR}/libtensorflow/lib/libtensorflow.so)
3637
include_directories(${CMAKE_PROJECT_NAME} PRIVATE libtensorflow/include/tensorflow/c)
3738
set(INSTALL_HEADERS "${INSTALL_HEADERS};libtensorflow/include/tensorflow/c/c_api.h")
@@ -53,4 +54,4 @@ install(TARGETS ${PROJECT_NAME}
5354

5455
add_subdirectory(examples/coco)
5556
add_subdirectory(examples/load_model)
56-
add_subdirectory(examples/mnist)
57+
add_subdirectory(examples/mnist)

0 commit comments

Comments
 (0)