Skip to content

Commit 4283834

Browse files
committed
Add feature summary to CMake.
1 parent 67f4fd4 commit 4283834

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ if(POLICY CMP0169)
66
endif()
77

88
include(CheckIncludeFile)
9+
include(FeatureSummary)
910

1011
option(PROXYRES_CURL "Enable support for downloading PAC scripts using curl." OFF)
1112
option(PROXYRES_DUKTAPE "Use embedded Duktape JavaScript engine." OFF)
@@ -240,7 +241,6 @@ if(PROXYRES_CODE_COVERAGE AND NOT MSVC)
240241
endif()
241242

242243
if(PROXYRES_USE_CXX)
243-
message(STATUS "Use the C++ compiler to compile (PROXYRES_USE_CXX=ON)")
244244
set_source_files_properties(${PROXYRES_SRCS} PROPERTIES LANGUAGE CXX)
245245
if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang|Clang")
246246
set(CMAKE_CXX_FLAGS "-Wno-deprecated ${CMAKE_CXX_FLAGS}")
@@ -417,3 +417,14 @@ if(PROXYRES_BUILD_CLI OR PROXYRES_BUILD_TESTS)
417417

418418
add_subdirectory(test)
419419
endif()
420+
421+
add_feature_info(PROXYRES_CURL PROXYRES_CURL "Enable support for downloading PAC scripts using curl.")
422+
add_feature_info(PROXYRES_DUKTAPE PROXYRES_DUKTAPE "Use embedded Duktape JavaScript engine.")
423+
add_feature_info(PROXYRES_EXECUTE PROXYRES_EXECUTE "Enable support for PAC script execution.")
424+
425+
add_feature_info(PROXYRES_USE_CXX PROXYRES_USE_CXX "Use the C++ compiler to compile proxyres.")
426+
427+
add_feature_info(PROXYRES_BUILD_CLI PROXYRES_BUILD_CLI "Build command line utility.")
428+
add_feature_info(PROXYRES_BUILD_TESTS PROXYRES_BUILD_TESTS "Build Googletest unit tests project.")
429+
430+
feature_summary(WHAT ALL)

0 commit comments

Comments
 (0)