diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-21 14:43:44 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-21 14:43:44 +0000 |
commit | 8b6adc54c4c02bf7b5ee90e38293dfaa54d8b35b (patch) | |
tree | 3fe742209db37cb371f36c397cd2b0e178896af8 | |
parent | e1c5a4baec923e5ef2162bd1a6e334cdf2be12aa (diff) | |
download | libproxy-git-8b6adc54c4c02bf7b5ee90e38293dfaa54d8b35b.tar.gz |
cmake/modules/config_sysconfig: Allow configuration of sysconfig module
Checking whether the host system has /etc/sysconfig is not deterministic
when cross compiling. Allow this to be disabled by adding a configure
option for it. OpenEmbedded can set this and have deterministic build
output independent of the host OS.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | libproxy/cmake/modules/config_sysconfig.cmk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libproxy/cmake/modules/config_sysconfig.cmk b/libproxy/cmake/modules/config_sysconfig.cmk index 4dba046..10e8c5c 100644 --- a/libproxy/cmake/modules/config_sysconfig.cmk +++ b/libproxy/cmake/modules/config_sysconfig.cmk @@ -1,5 +1,8 @@ if (NOT WIN32 AND NOT APPLE) - if (EXISTS "/etc/sysconfig" AND IS_DIRECTORY "/etc/sysconfig") - set(SYSCONFIG_FOUND 1) + option(WITH_SYSCONFIG "Build sysconfig module for /etc/sysconfig" ON) + if(WITH_SYSCONFIG) + if (EXISTS "/etc/sysconfig" AND IS_DIRECTORY "/etc/sysconfig") + set(SYSCONFIG_FOUND 1) + endif() endif() endif()
\ No newline at end of file |