From c58f582f79e6fdba37aea487296b31706fb392f4 Mon Sep 17 00:00:00 2001 From: turtlebasket Date: Tue, 13 Jun 2023 14:01:23 -0700 Subject: [PATCH] Change unix dest dir Allows for installation on macOS with SIP, plus general good practice --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6259f8d..b720422 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,7 @@ endif(BUILD_EXAMPLE) # Install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . if (UNIX) - set(DESTDIR "/usr") + set(DESTDIR "/usr/local") INSTALL(TARGETS opengjk_ce LIBRARY DESTINATION "${DESTDIR}/lib" PUBLIC_HEADER DESTINATION "${DESTDIR}/include"