mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
fix demo CMakeLists.txt, can cmake .. -DTARS_WEB_HOST=...
This commit is contained in:
parent
ca1b68b61c
commit
9f124879e7
@ -12,7 +12,11 @@ else()
|
||||
include (/usr/local/tars/cpp/makefile/tars-tools.cmake)
|
||||
endif()
|
||||
|
||||
set(TARS_WEB_HOST "http://tars.test.com")
|
||||
####you can: cd build; cmake .. -DTARS_WEB_HOST={your web host}
|
||||
set(TARS_WEB_HOST "" CACHE STRING "set web host")
|
||||
IF (TARS_WEB_HOST STREQUAL "")
|
||||
set(TARS_WEB_HOST "http://tars.test.com")
|
||||
ENDIF ()
|
||||
|
||||
include_directories(/usr/local/tars/cpp/thirdparty/include)
|
||||
link_directories(/usr/local/tars/cpp/thirdparty/lib)
|
||||
|
@ -12,7 +12,11 @@ else()
|
||||
include (/usr/local/tars/cpp/makefile/tars-tools.cmake)
|
||||
endif()
|
||||
|
||||
set(TARS_WEB_HOST "http://tars.test.com")
|
||||
####you can: cd build; cmake .. -DTARS_WEB_HOST={your web host}
|
||||
set(TARS_WEB_HOST "" CACHE STRING "set web host")
|
||||
IF (TARS_WEB_HOST STREQUAL "")
|
||||
set(TARS_WEB_HOST "http://tars.test.com")
|
||||
ENDIF ()
|
||||
|
||||
include_directories(/usr/local/tars/cpp/thirdparty/include)
|
||||
link_directories(/usr/local/tars/cpp/thirdparty/lib)
|
||||
|
Loading…
Reference in New Issue
Block a user