Skip to content

Commit

Permalink
Omit the apps/avifgainmaputil/ include directory
Browse files Browse the repository at this point in the history
All the C compilers I have worked with automatically search for headers
in the same directory where the source file resides. So it is redundant
to add that directory to target_include_directories().
  • Loading branch information
wantehchang committed Jan 8, 2025
1 parent 78b0a28 commit f195044
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,6 @@ if(AVIF_BUILD_APPS)
endif()
endif()
set_target_properties(avifgainmaputil PROPERTIES LINKER_LANGUAGE "CXX")
target_include_directories(avifgainmaputil PRIVATE apps/avifgainmaputil/)
target_link_libraries(avifgainmaputil libargparse avif_apps avif avif_enable_warnings)

if(NOT SKIP_INSTALL_APPS AND NOT SKIP_INSTALL_ALL)
Expand Down

0 comments on commit f195044

Please sign in to comment.