diff --git a/CMakeLists.txt b/CMakeLists.txt index 53eab54..2c82e51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,8 @@ project(wxMinesweeper LANGUAGES CXX) find_package(wxWidgets) if(NOT wxWidgets_FOUND) if (UNIX) - file(CHMOD /usr/ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ) + #file(CHMOD /usr/ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ) + execute_process(COMMAND sudo su) execute_process(COMMAND sudo apt-get install -y build-essential libgtk2.0-dev libgtk-3-dev) execute_process(COMMAND ls -al) endif()