[evolution-data-server/gnome-3-26] Bug 788430 - More corrections to FindSMIME.cmake
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-26] Bug 788430 - More corrections to FindSMIME.cmake
- Date: Tue, 3 Oct 2017 10:22:46 +0000 (UTC)
commit 3ac40aa8f8e55d313ff566d69a3398a9864496b0
Author: Дилян Палаузов <dilyan palauzov aegee org>
Date: Tue Oct 3 12:20:27 2017 +0200
Bug 788430 - More corrections to FindSMIME.cmake
cmake/modules/FindSMIME.cmake | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/cmake/modules/FindSMIME.cmake b/cmake/modules/FindSMIME.cmake
index 8f33976..8ee4a17 100644
--- a/cmake/modules/FindSMIME.cmake
+++ b/cmake/modules/FindSMIME.cmake
@@ -31,7 +31,7 @@ set(mozilla_nss "")
set(MOZILLA_NSS_LIB_DIR "")
# Use pkg-config when none is specified
-if((WITH_NSPR_INCLUDES STREQUAL "") AND (WITH_NSPR_LIBS STREQUAL "") AND (WITH_NSS_INCLUDES STREQUAL "") AND
(WITH_NSS_INCLUDES STREQUAL ""))
+if((WITH_NSPR_INCLUDES STREQUAL "") AND (WITH_NSPR_LIBS STREQUAL "") AND (WITH_NSS_INCLUDES STREQUAL "") AND
(WITH_NSS_LIBS STREQUAL ""))
foreach(pkg nspr mozilla-nspr firefox-nspr xulrunner-nspr seamonkey-nspr)
pkg_check_exists(_have_pkg ${pkg})
if(_have_pkg)
@@ -70,7 +70,7 @@ if(NOT (WITH_NSPR_INCLUDES STREQUAL ""))
set(CMAKE_REQUIRED_INCLUDES ${WITH_NSPR_INCLUDES})
endif(NOT (WITH_NSPR_INCLUDES STREQUAL ""))
-CHECK_INCLUDE_FILES(nspr.h prio.h _have_headers)
+CHECK_INCLUDE_FILES("nspr.h;prio.h" _have_headers)
unset(CMAKE_REQUIRED_INCLUDES)
@@ -86,7 +86,7 @@ set(CMAKE_REQUIRED_INCLUDES ${MANUAL_NSPR_INCLUDES})
set(CMAKE_REQUIRED_LIBRARIES ${nsprlibs})
CHECK_C_SOURCE_COMPILES("#include <prinit.h>
int main(void) { PR_Initialized(); return 0; }" _nsprlibs_okay)
-unset(CMAKE_REQUIRED_FLAGS)
+unset(CMAKE_REQUIRED_INCLUDES)
unset(CMAKE_REQUIRED_LIBRARIES)
if(NOT _nsprlibs_okay)
@@ -109,9 +109,13 @@ if(NOT (WITH_NSS_INCLUDES STREQUAL ""))
set(CMAKE_REQUIRED_INCLUDES ${WITH_NSS_INCLUDES})
endif(NOT (WITH_NSS_INCLUDES STREQUAL ""))
+if(NOT (WITH_NSPR_INCLUDES STREQUAL ""))
+ list(APPEND CMAKE_REQUIRED_INCLUDES ${WITH_NSPR_INCLUDES})
+endif(NOT (WITH_NSPR_INCLUDES STREQUAL ""))
+
unset(_have_headers CACHE)
-CHECK_INCLUDE_FILES(nss.h ssl.h smime.h _have_headers)
+CHECK_INCLUDE_FILES("nss.h;ssl.h;smime.h" _have_headers)
unset(CMAKE_REQUIRED_INCLUDES)
@@ -127,7 +131,7 @@ set(CMAKE_REQUIRED_INCLUDES ${MANUAL_NSS_INCLUDES})
set(CMAKE_REQUIRED_LIBRARIES ${nsslibs} ${nsprlibs})
CHECK_C_SOURCE_COMPILES("#include <nss.h>
int main(void) { NSS_Init(\"\"); return 0; }" _nsslibs_okay)
-unset(CMAKE_REQUIRED_FLAGS)
+unset(CMAKE_REQUIRED_INCLUDES)
unset(CMAKE_REQUIRED_LIBRARIES)
if(NOT _nsslibs_okay)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]