Skip to content

Commit

Permalink
fix CMAKE_INSTALL_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Oct 8, 2023
1 parent 315c267 commit 986c95e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmake/Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,16 @@ option(ONLY_LIB "option for only lib" ON)
#-------------------------------------------------------------

IF (UNIX)
set(CMAKE_INSTALL_PREFIX "/usr/local/tars/cpp" CACHE STRING "set install path" FORCE)
set(INSTALL_PREFIX "/usr/local/tars/cpp" CACHE STRING "set install path" FORCE)
ELSE()
set(CMAKE_INSTALL_PREFIX "c:/tars/cpp" CACHE STRING "set install path" FORCE)
set(INSTALL_PREFIX "c:/tars/cpp" CACHE STRING "set install path" FORCE)
ENDIF()

#工程INSTALL目录
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${INSTALL_PREFIX}" CACHE STRING "set install path" FORCE)
endif()

#-------------------------------------------------------------
IF (APPLE)
link_libraries(iconv)
Expand Down

0 comments on commit 986c95e

Please sign in to comment.