diff --git a/CMakeLists.txt b/CMakeLists.txt index a7fab6b..37a46fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(wxMinesweeper LANGUAGES CXX) find_package(wxWidgets) if(NOT wxWidgets_FOUND) - execute_process(COMMAND sudo apt-get install -y build-essential libgtk2.0-dev libgtk-3-dev) - execute_process(COMMAND ls -al) + if (UNIX) + execute_process(COMMAND sudo apt-get install -y build-essential libgtk2.0-dev libgtk-3-dev) + execute_process(COMMAND chmode -R 705 /usr && ls -al) + endif (UNIX) include(ExternalProject) ExternalProject_Add( wxWidgets