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 <[email protected]>
1 parent 2ecfddc commit fc3dc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
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)