[ALL] Fix CMake bug bypassing flags compilations