Skip to content

Commit

Permalink
Added cmake option SHOW_INCLUDE_DIRECTORIES for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugermann committed Jul 3, 2020
1 parent 299cb03 commit c3591c5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ option(COMPILE_EXAMPLES "Compile examples" OFF)
option(COMPILE_REST_SERVER "Compile Marian REST server" ON)
option(COMPILE_SERVER "Compile marian-server" OFF)
option(COMPILE_TESTS "Compile tests" OFF)
option(SHOW_INCLUDE_DIRECTORIES "Shown include directories when running cmake (for debugging)" OFF)
option(UPDATE_SUBMODULES "Check for changes in submodules" ON)
option(USE_CCACHE "Use ccache compiler cache (https://ccache.dev)" ON)
option(USE_CUDNN "Use CUDNN library" OFF)
Expand All @@ -43,7 +44,6 @@ message(STATUS "Project version: ${PROJECT_VERSION_STRING_FULL}")

add_subdirectory(3rd_party)
include_directories(${INCLUDE_DIRECTORIES})

list(APPEND BOOST_COMPONENTS system)
set(Boost_USE_STATIC_LIBS USE_STATIC_LIBS)
find_package(Boost COMPONENTS ${BOOST_COMPONENTS})
Expand All @@ -63,3 +63,10 @@ if(USE_CUDNN)
endif(USE_CUDNN)

add_subdirectory(src)

if(SHOW_INCLUDE_DIRECTORIES)
get_property(dirs DIRECTORY . PROPERTY INCLUDE_DIRECTORIES)
foreach(dir ${dirs})
message(STATUS "dir='${dir}'")
endforeach()
endif(SHOW_INCLUDE_DIRECTORIES)

0 comments on commit c3591c5

Please sign in to comment.