cotire
cotire copied to clipboard
cotire and GCC flag "-include header.h"
I have a header which is included into every compilation unit using GCC command line argument -include header.h
Can I apply cotire on this header to use it as precompiled header? something like
SET_TARGET_PROPERTIES(MyProject PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "header.h")
COTIRE(My project)
If this solution is applicable, for some reason it doesnt work, fails in CMake generation stage with
Problems were encountered while collecting compiler information: c++: error: /home/user/Development/cmake-build-debug/lib/MyProject/cotire/MyProject_CXX_prefix.hxx: No such file or directory