mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 07:08:45 +08:00
packages.ufo: fix
This commit is contained in:
parent
ffc80f1cca
commit
347c213214
@ -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;
|
||||||
|
@ -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"
|
||||||
];
|
];
|
||||||
|
@ -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)
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
在 4H-SiC 超胞中,存在一个 C 空位,计算它的声子。
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user