mirror of
https://github.com/zebrajr/server.git
synced 2025-12-06 12:20:40 +01:00
cmake: quieter
This commit is contained in:
parent
38ea795bb6
commit
4832b751ad
|
|
@ -31,6 +31,9 @@ IF(CMAKE_VERSION VERSION_EQUAL "3.0.0" OR
|
||||||
CMAKE_POLICY(SET CMP0045 OLD)
|
CMAKE_POLICY(SET CMP0045 OLD)
|
||||||
CMAKE_POLICY(SET CMP0042 OLD)
|
CMAKE_POLICY(SET CMP0042 OLD)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
IF(POLICY CMP0048)
|
||||||
|
CMAKE_POLICY(SET CMP0048 NEW)
|
||||||
|
ENDIF()
|
||||||
IF(POLICY CMP0054)
|
IF(POLICY CMP0054)
|
||||||
CMAKE_POLICY(SET CMP0054 NEW)
|
CMAKE_POLICY(SET CMP0054 NEW)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
|
||||||
8
cmake/FindBISON.cmake
Normal file
8
cmake/FindBISON.cmake
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
IF(DEFINED BISON_EXECUTABLE)
|
||||||
|
SET(bison_quiet QUIET)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
set(orig_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
|
||||||
|
unset(CMAKE_MODULE_PATH)
|
||||||
|
find_package(BISON ${BISON_FIND_VERSION} ${bison_quiet} ${BISON_FIND_REQUIRED})
|
||||||
|
set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})
|
||||||
|
|
@ -318,7 +318,7 @@ ENDIF(CONNECT_WITH_MONGO)
|
||||||
OPTION(CONNECT_WITH_REST "Compile CONNECT storage engine with REST support" ON)
|
OPTION(CONNECT_WITH_REST "Compile CONNECT storage engine with REST support" ON)
|
||||||
|
|
||||||
IF(CONNECT_WITH_REST)
|
IF(CONNECT_WITH_REST)
|
||||||
MESSAGE(STATUS "=====> REST support is ON")
|
MESSAGE_ONCE(CONNECT_WITH_REST "REST support is ON")
|
||||||
SET(CONNECT_SOURCES ${CONNECT_SOURCES} tabrest.cpp tabrest.h)
|
SET(CONNECT_SOURCES ${CONNECT_SOURCES} tabrest.cpp tabrest.h)
|
||||||
add_definitions(-DREST_SUPPORT)
|
add_definitions(-DREST_SUPPORT)
|
||||||
FIND_PACKAGE(cpprestsdk QUIET)
|
FIND_PACKAGE(cpprestsdk QUIET)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user