Update CMakeLists.txt

Made nsight debugging stuff work only for debug builds - previous CMAKE if statement wasn't working appropriately (was adding flag to release builds.)