1diff --git a/CMakeLists.txt b/CMakeLists.txt
2index 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")
8
9-if(UNIX)
10- set(LINUX TRUE)
11-endif()
12-
13 set(SRC_DIR src)
14 set(INC_DIR include)
15
16@@ -17,7 +13,8 @@ set_target_properties(mya PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DI
17 target_include_directories(mya PRIVATE ${INC_DIR})
18
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})