Skip to content

Commit

Permalink
CMakeLists: allow to use minizip as a subproject with add_subdirectory
Browse files Browse the repository at this point in the history
add the build directory to the target_include_directories
  • Loading branch information
michael-brade committed Apr 29, 2020
1 parent b39f7a0 commit d2b9242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ elseif(WIN32)
endif()
endif()

target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:${INSTALL_INC_DIR}>)
target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:${INSTALL_INC_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)

# Install files
if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
Expand Down

0 comments on commit d2b9242

Please sign in to comment.