diff options
author | Walter Gray <wgray@leapmotion.com> | 2017-05-30 14:09:42 -0700 |
---|---|---|
committer | Walter Gray <wgray@leapmotion.com> | 2017-05-30 15:08:45 -0700 |
commit | d8c5865e253b26942c03ac7a89fc5d6c6a707e0c (patch) | |
tree | 20e6f2b275d65eb604ac833a39c47e6e84deb9d2 /cmake | |
parent | d6470abef1ca76c40e6da3b4445b7c32f1d0e2e3 (diff) | |
download | protobuf-d8c5865e253b26942c03ac7a89fc5d6c6a707e0c.tar.gz protobuf-d8c5865e253b26942c03ac7a89fc5d6c6a707e0c.tar.bz2 protobuf-d8c5865e253b26942c03ac7a89fc5d6c6a707e0c.zip |
Fix policy warning CMP0054
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/protobuf-config-version.cmake.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/protobuf-config-version.cmake.in b/cmake/protobuf-config-version.cmake.in index 0036c9ef..fda748bb 100644 --- a/cmake/protobuf-config-version.cmake.in +++ b/cmake/protobuf-config-version.cmake.in @@ -47,9 +47,9 @@ _check_and_save_build_option(MSVC_STATIC_RUNTIME @protobuf_MSVC_STATIC_RUNTIME@) _check_and_save_build_option(BUILD_SHARED_LIBS @protobuf_BUILD_SHARED_LIBS@) # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: -if(NOT "${CMAKE_SIZEOF_VOID_P}" STREQUAL "" AND NOT "@CMAKE_SIZEOF_VOID_P@" STREQUAL "") +if(CMAKE_SIZEOF_VOID_P AND "@CMAKE_SIZEOF_VOID_P@") # check that the installed version has the same 32/64bit-ness as the one which is currently searching: - if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "@CMAKE_SIZEOF_VOID_P@") + if(NOT CMAKE_SIZEOF_VOID_P EQUAL "@CMAKE_SIZEOF_VOID_P@") math(EXPR installedBits "@CMAKE_SIZEOF_VOID_P@ * 8") set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") set(PACKAGE_VERSION_UNSUITABLE TRUE) |