diff options
| author | Andreas Schneider <asn@samba.org> | 2014-04-08 09:34:11 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2014-04-10 11:58:37 +0200 |
| commit | d5a37e5661d6dd466cd5dd914300f06406b48f3d (patch) | |
| tree | 14befac9c0e0a06aa24a2955cba8eea60154d6b6 | |
| parent | af3c688938be9f3a506107c65b964b362d2ef5c4 (diff) | |
| download | socket_wrapper-d5a37e5661d6dd466cd5dd914300f06406b48f3d.tar.gz socket_wrapper-d5a37e5661d6dd466cd5dd914300f06406b48f3d.tar.xz socket_wrapper-d5a37e5661d6dd466cd5dd914300f06406b48f3d.zip | |
cmake: Only set policy in cmake 3.0.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
| -rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 449ed54..50ac9ad 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,6 +23,8 @@ set_target_properties( ) # This needs to be at the end -cmake_policy(SET CMP0026 OLD) +if (CMAKE_VERSION VERSION_GREATER 2.8.13) + cmake_policy(SET CMP0026 OLD) +endif() get_target_property(SWRAP_LOCATION socket_wrapper LOCATION) set(SOCKET_WRAPPER_LOCATION ${SWRAP_LOCATION} PARENT_SCOPE) |
