diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fc797e..a09dc57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99") include_directories(.) -if(APPLE) +if(APPLE OR (UNIX AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")) find_package(Argp) if(ARGP_FOUND) message(STATUS "argp found.") @@ -15,7 +15,7 @@ if(APPLE) else() set(ARGP_INCLUDE_DIRS "") set(ARGP_LIBRARIES "") -endif(APPLE) +endif(APPLE OR (UNIX AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")) if(NOT RTRLIB_INCLUDE AND NOT RTRLIB_LIBRARY) find_package(Rtr)