diff --git a/README.md b/README.md index 6711b56..a3f5a8a 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ $ git clone https://github.com/yangyangwithgnu/hardseed.git ``` $ cd hardseed/build/ $ cmake . -$ make && sudo make install +$ make && make install ``` ####『osX』 diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index a74ef69..02eb536 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -26,7 +26,7 @@ SET(CMAKE_CXX_FLAGS "-std=c++11 -O3") SET(CMAKE_BUILD_TYPE release) ADD_EXECUTABLE(hardseed ${SRC_LIST}) TARGET_LINK_LIBRARIES(hardseed curl pthread) -INSTALL(PROGRAMS hardseed DESTINATION /usr/bin/) +INSTALL(PROGRAMS hardseed DESTINATION /usr/local/bin) #<<<<<<<<<<<<<<<<<<<<<< @@ -52,6 +52,6 @@ INSTALL(PROGRAMS hardseed DESTINATION /usr/bin/) #SET(CMAKE_BUILD_TYPE release) #ADD_EXECUTABLE(hardseed ${SRC_LIST}) #TARGET_LINK_LIBRARIES(hardseed curl pthread iconv) -#INSTALL(PROGRAMS hardseed DESTINATION /usr/bin/) +#INSTALL(PROGRAMS hardseed DESTINATION /usr/local/bin) ##<<<<<<<<<<<<<<<<<<<<<<