Skip to content

Commit

Permalink
Add src to the include directories for tmx
Browse files Browse the repository at this point in the history
When using this library as a submodule of another project, we have to
manually add the `src` directory to the include path.

If there is no installation to be done, we want all dependent targets to
have the right include path.
  • Loading branch information
brodeuralexis committed Apr 28, 2020
1 parent 35aaa76 commit 78591de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ endif()

# -- Installation

target_include_directories(tmx INTERFACE $<INSTALL_INTERFACE:include>)
target_include_directories(tmx INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src> $<INSTALL_INTERFACE:include>)

configure_file("tmxConfig.cmake.in" "tmxConfig.cmake" @ONLY)

Expand Down

0 comments on commit 78591de

Please sign in to comment.