Skip to content

Commit fc3dc48

Browse files
AlexandraTrifanpcercuei
authored andcommitted
CMakeLists.txt: Do not use /usr as the default install location on MacOS.
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>
1 parent 2ecfddc commit fc3dc48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (WIN32)
1414
endif()
1515

1616
# Set the default install path to /usr
17-
if (NOT WIN32 AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
17+
if (NOT APPLE AND NOT WIN32 AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
1818
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "default install path" FORCE)
1919
endif()
2020

0 commit comments

Comments
 (0)