File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ set_target_properties("${PROJECT_NAME}" PROPERTIES
8181 MACOSX_BUNDLE ON
8282 MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_LIST_DIR} /source/Info.plist"
8383 XCODE_GENERATE_SCHEME ON
84+ INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
85+ INTERPROCEDURAL_OPTIMIZATION_PROFILE TRUE
8486)
8587set_source_files_properties ("${CMAKE_CURRENT_LIST_DIR} /source/wxmac.icns" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources" )
8688if (APPLE )
Original file line number Diff line number Diff line change 88#include < sys/stat.h>
99#include < string>
1010#include < filesystem>
11+ #include < vector>
1112
1213// data file names
1314static constexpr std::string_view projectsFile = " projects.txt" ;
@@ -20,6 +21,7 @@ struct wxWindow;
2021
2122#if defined __APPLE__
2223 #include < pwd.h>
24+ #include < unistd.h>
2325 // the location to store application data
2426 static const std::filesystem::path datapath = std::filesystem::path(getpwuid(getuid())->pw_dir) / " Library/Application Support/UnityHubNative" ;
2527
@@ -67,6 +69,7 @@ struct wxWindow;
6769
6870#elif defined __linux__
6971 #include < pwd.h>
72+ #include < unistd.h>
7073 static const std::filesystem::path datapath = std::filesystem::path(getpwuid(getuid())->pw_dir) / " UnityHubNative" ;
7174 static constexpr std::string_view null_device = " >/dev/null 2>&1" ;
7275
@@ -131,4 +134,4 @@ struct project {
131134 bool operator ==(const project& other) const {
132135 return this ->path == other.path ;
133136 }
134- };
137+ };
You can’t perform that action at this time.
0 commit comments