Closed windreamer closed 8 years ago
-mtune=native
makes the binary generated not portable enough for different kinds of CPUs
It is cool modification for default gcc compiler which supports c++11. There are two questions:
ps: I am not sure now who is the maintainer of libdoubanm
, doubanm
, and some related c++ projects. I think all this projects might have similar problems.
-mtune=native
is not ideal fixed in CMakeLIsts
. End-user can specify his own compiler arguments to better trade-off according his environment, by add -DCMAKE_CXX_FLAGS=...
CMAKE_BUILD_TYPE
part? CMAKE_BUILD_TYPE
can be specified by -DCMAKE_BUILD_TYPE
, I think we can add some build rules for convenience, eg, debug_rules.cmake
or release_rules.cmake
Ok, agree! Could you add, say debug_rules.cmake
or release_rules.cmake
inside this pull request to make the refactor logic more clearly?
LGTM 🍺
and install headers