diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 922f7e52e..701cd7585 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -4,7 +4,7 @@ foreach(TOOL_SOURCE ${TOOL_SOURCES}) get_filename_component(TOOL ${TOOL_SOURCE} NAME_WE) add_executable("${TOOL}-tool" ${TOOL_SOURCE}) target_link_libraries("${TOOL}-tool" taco) - target_include_directories("${TOOL}-tool" PRIVATE "${CMAKE_BINARY_DIR}/include") + target_include_directories("${TOOL}-tool" PRIVATE "${PROJECT_BINARY_DIR}/include") SET_TARGET_PROPERTIES("${TOOL}-tool" PROPERTIES OUTPUT_NAME ${TOOL}) install(TARGETS "${TOOL}-tool" DESTINATION bin) endforeach()