vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / applications / misc / mya / argp.patch
blob352f8a077adcb4d87066f9c0ee271824e6f9eeea
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 273968c..236e5fb 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -3,10 +3,6 @@ project(mya)
6 set(CMAKE_C_STANDARD 11 )
7 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall")
9 -if(UNIX)
10 - set(LINUX TRUE)
11 -endif()
13 set(SRC_DIR src)
14 set(INC_DIR include)
16 @@ -17,7 +13,8 @@ set_target_properties(mya PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DI
17 target_include_directories(mya PRIVATE ${INC_DIR})
19 set(LIBS curl json-c bsd)
20 -if(LINUX)
21 - list(APPEND LIBS)
22 +find_library(ARGP argp)
23 +if(ARGP)
24 + list(APPEND LIBS argp)
25 endif()
26 target_link_libraries(mya ${LIBS})