packages.ufo: fix

This commit is contained in:
陈浩南 2024-09-12 02:51:44 +08:00
parent ffc80f1cca
commit 347c213214
4 changed files with 5 additions and 4 deletions

View File

@ -41,7 +41,7 @@ namespace YAML
template <biu::SpecializationOf<std::optional> Optional> bool convert<Optional>::decode template <biu::SpecializationOf<std::optional> Optional> bool convert<Optional>::decode
(const Node& node, Optional& optional) (const Node& node, Optional& optional)
{ {
if (node.IsNull() || !node.IsDefined()) optional = std::nullopt; if (!node.IsDefined() || node.IsNull()) optional = std::nullopt;
else else
{ {
typename Optional::value_type value; typename Optional::value_type value;

View File

@ -7,7 +7,7 @@
inherit src; inherit src;
cmakeFlags = cmakeFlags =
[ [
"-DMATPLOTPP_BUILD_EXAMPLES=OFF" "-DBUILD_SHARED_LIBS=ON" "-DMATPLOTPP_BUILD_SHARED_LIBS=ON" "-DMATPLOTPP_BUILD_EXAMPLES=OFF"
"-DMATPLOTPP_WITH_SYSTEM_NODESOUP=ON" "-DMATPLOTPP_WITH_SYSTEM_CIMG=ON" "-DMATPLOTPP_WITH_SYSTEM_NODESOUP=ON" "-DMATPLOTPP_WITH_SYSTEM_CIMG=ON"
"-DMATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND=ON" "-DGLAD_REPRODUCIBLE=ON" "-DMATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND=ON" "-DGLAD_REPRODUCIBLE=ON"
]; ];

View File

@ -14,6 +14,9 @@ find_package(Matplot++ REQUIRED)
find_package(biu REQUIRED) find_package(biu REQUIRED)
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
# matplot++ requires glad but does not find it
find_package(glad REQUIRED)
add_executable(ufo src/fold.cpp src/unfold.cpp src/plot.cpp src/main.cpp) add_executable(ufo src/fold.cpp src/unfold.cpp src/plot.cpp src/main.cpp)
target_include_directories(ufo PRIVATE ${PROJECT_SOURCE_DIR}/include) target_include_directories(ufo PRIVATE ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(ufo PRIVATE TBB::tbb Matplot++::matplot Matplot++::matplot_opengl biu::biu) target_link_libraries(ufo PRIVATE TBB::tbb Matplot++::matplot Matplot++::matplot_opengl biu::biu)

View File

@ -1,2 +0,0 @@
在 4H-SiC 超胞中,存在一个 C 空位,计算它的声子。