Since flag handling is OS dependent, right now the situation is not as clean as I wished it was in the CMakeLists.txt file.