It's better to move in environment.cmake. Use if (UNIX)