From 76d23885d4e43498f3cbf42e2ef406910e63e85f Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 3 Aug 2023 09:23:16 +0200 Subject: [PATCH] [cmake] add common options to subprojects --- rdtk/CMakeLists.txt | 4 +++- uwac/CMakeLists.txt | 4 +++- winpr/CMakeLists.txt | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/rdtk/CMakeLists.txt b/rdtk/CMakeLists.txt index f47996388..5271c346c 100644 --- a/rdtk/CMakeLists.txt +++ b/rdtk/CMakeLists.txt @@ -38,7 +38,9 @@ if (NOT FREERDP_UNIFIED_BUILD) endif() - set(CMAKE_COLOR_MAKEFILE ON) + option(CMAKE_COLOR_MAKEFILE "colorful CMake makefile" ON) + option(CMAKE_VERBOSE_MAKEFILE "verbose CMake makefile" ON) + option(CMAKE_POSITION_INDEPENDENT_CODE "build with position independent code (-fPIC or -fPIE)" ON) set(WINPR_VERSION_MAJOR 3) option(BUILD_SHARED_LIBS "Build shared libraries" ON) diff --git a/uwac/CMakeLists.txt b/uwac/CMakeLists.txt index 893c24d2a..0ab79e8e4 100644 --- a/uwac/CMakeLists.txt +++ b/uwac/CMakeLists.txt @@ -37,7 +37,9 @@ if (NOT FREERDP_UNIFIED_BUILD) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) endif() - set(CMAKE_COLOR_MAKEFILE ON) + option(CMAKE_COLOR_MAKEFILE "colorful CMake makefile" ON) + option(CMAKE_VERBOSE_MAKEFILE "verbose CMake makefile" ON) + option(CMAKE_POSITION_INDEPENDENT_CODE "build with position independent code (-fPIC or -fPIE)" ON) option(BUILD_SHARED_LIBS "Build shared libraries" ON) option(EXPORT_ALL_SYMBOLS "Export all symbols form library" OFF) diff --git a/winpr/CMakeLists.txt b/winpr/CMakeLists.txt index c245a7e26..3bdef90ba 100644 --- a/winpr/CMakeLists.txt +++ b/winpr/CMakeLists.txt @@ -29,8 +29,9 @@ if (NOT FREERDP_UNIFIED_BUILD) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) endif() - - set(CMAKE_COLOR_MAKEFILE ON) + option(CMAKE_COLOR_MAKEFILE "colorful CMake makefile" ON) + option(CMAKE_VERBOSE_MAKEFILE "verbose CMake makefile" ON) + option(CMAKE_POSITION_INDEPENDENT_CODE "build with position independent code (-fPIC or -fPIE)" ON) option(WITH_LIBRARY_VERSIONING "Use library version triplet" ON) # Default to build shared libs