From 4bb47b1001ce095316ccfc5c701333eb8887b8ee Mon Sep 17 00:00:00 2001 From: henrykorir Date: Sat, 25 May 2024 01:53:46 +0300 Subject: [PATCH] added chmod 705 --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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