Skip to content

prevent unnecessary recompilation#402

Open
lzy1g1225 wants to merge 1 commit intomfontanini:masterfrom
lzy1g1225:fixrecompile
Open

prevent unnecessary recompilation#402
lzy1g1225 wants to merge 1 commit intomfontanini:masterfrom
lzy1g1225:fixrecompile

Conversation

@lzy1g1225
Copy link
Copy Markdown

@lzy1g1225 lzy1g1225 commented Jun 30, 2020

I found that libtins got recompile everytime which drive me crazy when I switched debug/release mode or when I switched from win32/linux.
The reason is the cmake generates config.h for those build types into source folder and got the config.h overwritten, which causing the compiler to recompile the whole project.
I suggest to generate config.h in binary directory. That make every config.h stay with there own build type.

…he whole project when the build type changed
@lzy1g1225 lzy1g1225 changed the title generate config.h in binary directory generate config.h in binary directory to prevent unnecessary recompilation Jun 30, 2020
@lzy1g1225 lzy1g1225 changed the title generate config.h in binary directory to prevent unnecessary recompilation prevent unnecessary recompilation Jun 30, 2020
@lzy1g1225
Copy link
Copy Markdown
Author

Looks like the appveyor build check failed because tests and examples didn't update include path for config.h. Will add this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant