diff --git a/src/nostalgia/player/CMakeLists.txt b/src/nostalgia/player/CMakeLists.txt index 92639d3e..a474ec12 100644 --- a/src/nostalgia/player/CMakeLists.txt +++ b/src/nostalgia/player/CMakeLists.txt @@ -5,7 +5,9 @@ add_executable( ) # enable LTO -set_property(TARGET nostalgia PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) +if(NOT WIN32) + set_property(TARGET nostalgia PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) +endif() if(COMMAND OBJCOPY_FILE) set_target_properties(nostalgia diff --git a/src/nostalgia/studio/CMakeLists.txt b/src/nostalgia/studio/CMakeLists.txt index 3a13371b..3f6a707f 100644 --- a/src/nostalgia/studio/CMakeLists.txt +++ b/src/nostalgia/studio/CMakeLists.txt @@ -19,7 +19,7 @@ target_link_libraries( NostalgiaCore-Studio ) -if (CMAKE_BUILD_TYPE STREQUAL "Release") +if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32) # enable LTO set_property(TARGET nostalgia-studio PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) endif() @@ -43,4 +43,4 @@ install( BUNDLE DESTINATION . ) -add_subdirectory(lib) \ No newline at end of file +add_subdirectory(lib) diff --git a/src/nostalgia/studio/lib/configio.hpp b/src/nostalgia/studio/lib/configio.hpp index 89a95877..3b2675fc 100644 --- a/src/nostalgia/studio/lib/configio.hpp +++ b/src/nostalgia/studio/lib/configio.hpp @@ -31,7 +31,7 @@ constexpr auto ConfigDir = [] { case ox::OS::OpenBSD: return "{}/.config/{}"; case ox::OS::Windows: - return "{}/AppData/Local/{}"; + return R"({}/AppData/Local/{})"; case ox::OS::BareMetal: return ""; } diff --git a/src/nostalgia/studio/lib/filedialog_nfd.cpp b/src/nostalgia/studio/lib/filedialog_nfd.cpp index 9d9a71eb..401c75c8 100644 --- a/src/nostalgia/studio/lib/filedialog_nfd.cpp +++ b/src/nostalgia/studio/lib/filedialog_nfd.cpp @@ -36,7 +36,6 @@ ox::Result saveFile(const ox::Vector &filters) noexcep for (auto i = 0u; const auto &f : filters) { filterItems[i].name = f.name.c_str(); filterItems[i].spec = f.spec.c_str(); - //filterItems[i] = {f.name.c_str(), f.spec.c_str()}; ++i; } return toResult(NFD::SaveDialog(path, filterItems.data(), filterItems.size()), path); diff --git a/src/nostalgia/tools/CMakeLists.txt b/src/nostalgia/tools/CMakeLists.txt index ef59e15f..d7c2d897 100644 --- a/src/nostalgia/tools/CMakeLists.txt +++ b/src/nostalgia/tools/CMakeLists.txt @@ -6,7 +6,7 @@ target_link_libraries( NostalgiaPack ) -if (CMAKE_BUILD_TYPE STREQUAL "Release") +if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32) # enable LTO set_property(TARGET nost-pack PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) endif()