Skip to content

Commit

Permalink
Fix CMake build without tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews authored and dbaston committed Nov 30, 2019
1 parent 42f1a60 commit fbb1804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ authors.git
!/docker/**/Makefile
/.vs*
.idea/
.project
out/
4 changes: 3 additions & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
add_executable(example example.cpp)

target_link_libraries(example PRIVATE geos)
target_include_directories(test_geos_unit
if(BUILD_TESTING)
target_include_directories(test_geos_unit
PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>)
endif()

option(BUILD_DOCUMENTATION "Build Doxygen documentation" OFF)

Expand Down

0 comments on commit fbb1804

Please sign in to comment.