Skip to content

Commit 895bcff

Browse files
committed
Enable make install in Termux
Apply patch from claudeha via: #82
1 parent 53963e4 commit 895bcff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ option(RTOSC_WERROR "Compile with warnings being treated as errors" OFF)
5959
set(BUILD_RTOSC_EXAMPLES FALSE CACHE BOOL
6060
"Build RTOSC Example Programs")
6161

62-
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
62+
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Android")
6363
include(GNUInstallDirs)
6464
endif()
6565

@@ -286,7 +286,7 @@ if(DOXYGEN_FOUND)
286286
endif()
287287

288288
#Installation
289-
if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT DEFINED RTOSC_NO_INSTALL)
289+
if((CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Android") AND NOT DEFINED RTOSC_NO_INSTALL)
290290
if(PKG_CONFIG_FOUND)
291291
configure_file(librtosc.pc.cmake
292292
${CMAKE_CURRENT_BINARY_DIR}/librtosc.pc @ONLY)

0 commit comments

Comments
 (0)