diff --git a/src/tools/msvc.jam b/src/tools/msvc.jam index 6375b75b0..afe572a8a 100644 --- a/src/tools/msvc.jam +++ b/src/tools/msvc.jam @@ -443,7 +443,9 @@ generators.register-linker msvc.link.dll : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LI generators.register-archiver msvc.archive : OBJ : STATIC_LIB : msvc ; generators.register-c-compiler msvc.compile.c++ : CPP : OBJ : msvc ; generators.register-c-compiler msvc.compile.c : C : OBJ : msvc ; -generators.register-standard msvc.compile.rc : RC : OBJ(%_res) : msvc ; + +# Using 'register-c-compiler' adds the build directory to INCLUDES +generators.register-c-compiler msvc.compile.rc : RC : OBJ(%_res) : msvc ; generators.override msvc.compile.rc : rc.resource-compile ; generators.register-standard msvc.compile.asm : ASM : OBJ : msvc ; diff --git a/src/tools/rc.jam b/src/tools/rc.jam index 38d2686ce..9c801e388 100644 --- a/src/tools/rc.jam +++ b/src/tools/rc.jam @@ -58,7 +58,9 @@ actions quietly create-empty-object # The reason we generate OBJ and not RES, is that gcc does not # seem to like RES files, but works OK with OBJ. # See http://article.gmane.org/gmane.comp.lib.boost.build/5643/ -generators.register-standard rc.resource-compile : RC : OBJ(%_res) ; +# +# Using 'register-c-compiler' adds the build directory to INCLUDES +generators.register-c-compiler rc.resource-compile : RC : OBJ(%_res) ; # Register scanner for resources class res-scanner : scanner