Skip to content

Commit

Permalink
CMakeLists.txt: Do not use /usr as the default install location on Ma…
Browse files Browse the repository at this point in the history
…cOS.

Due to SIP(System Integrity Protection), libraries and other config files
can't be installed in this location.

Signed-off-by: Alexandra Trifan <Alexandra.Trifan@analog.com>
  • Loading branch information
AlexandraTrifan authored and pcercuei committed Jun 22, 2022
1 parent 2ecfddc commit fc3dc48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (WIN32)
endif()

# Set the default install path to /usr
if (NOT WIN32 AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if (NOT APPLE AND NOT WIN32 AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "default install path" FORCE)
endif()

Expand Down

0 comments on commit fc3dc48

Please sign in to comment.