libftdi-git Archives

Subject: A library to talk to FTDI chips branch, cmake-swig-updates, updated. v1.4-21-gda0bf76

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 1 Oct 2019 15:34:00 +0200 (CEST)
The branch, cmake-swig-updates has been updated
       via  da0bf767db9396ec9b1658bf9fdeb549d2a81eb5 (commit)
      from  f49ee0d141e6a3f467c9054916d2f8876ae22587 (commit)


- Log -----------------------------------------------------------------
commit da0bf767db9396ec9b1658bf9fdeb549d2a81eb5
Author: Frank Dana <ferdnyc@xxxxxxxxx>
Date:   Thu Sep 26 14:57:25 2019 -0400

    Simplify CMake policy guard
    
    Signed-off-by: FeRD (Frank Dana) <ferdnyc@xxxxxxxxx>

-----------------------------------------------------------------------

Summary of changes:
 python/CMakeLists.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 494f6ff..4f758d5 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -1,7 +1,7 @@
-# swig_add_library behavior changed in cmake 3.13 and 
SWIG_MODULE_<target>_REAL_NAME
-# is no longer set by default so set policy to the old behavior.
-if(NOT CMAKE_VERSION VERSION_LESS 3.13.0)
-  cmake_policy(SET CMP0078 OLD)
+# swig_add_library behavior changed in cmake 3.13 to no longer set
+# SWIG_MODULE_<target>_REAL_NAME, so restore the old behavior.
+if ( POLICY CMP0078 )
+  cmake_policy( SET CMP0078 OLD )
 endif ()
 
 # workaround for cmake bug #0013449


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, cmake-swig-updates, updated. v1.4-21-gda0bf76, libftdi-git <=