From 155e245b613bb8eef01fba9fd31ebc49525905a8 Mon Sep 17 00:00:00 2001 From: Carlos Gomes Martinho Date: Wed, 25 Mar 2020 10:27:12 +0100 Subject: [PATCH] build: add also android --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9599870..d82796c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,7 @@ add_library( target_include_directories( ${PROJECT_NAME} PUBLIC $ $ $) -if(LINUX) +if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android) target_link_libraries(${PROJECT_NAME} PRIVATE m) endif() if(NOT MSVC)