Add the max version to the same addition -
 -DCMAKE_POLICY_VERSION_MINIMUM=3.5...3.11

On 9/16/25 20:58, Marco Calistri via wsjt-devel wrote:
Hello,

I attempted to compile the new source WSJTX 3.0.0-rc1 code as always I did so far, but now cmake is giving an error.

This is the sequence of commands I alway launch (in this specific case I added the POLICY_VERSION=3.5):

tar -xzvf /home/marco/Scaricati/wsjtx-3.0.0-rc1.tgz -C /home/marco/WSJT- X_build/build/
cd /home/marco/WSJT-X_build/build/wsjtx-3.0.0-rc1/
/usr/bin/cmake -Dhamlib_INCLUDE_DIRS=/usr/local/include \
  -Dhamlib_LIBRARIES=/usr/local/lib64/libhamlib.so \
  -Dhamlib_LIBRARY_DIRS=/usr/local/lib64 \
  -DWSJT_GENERATE_DOCS=OFF \
  -DWSJT_SKIP_MANPAGES=ON \
  -DWSJT_QMAP=NO \
  -Werror=deprecated-declarations \
  -Wno-error \
  -DCMAKE_POLICY_VERSION_MINIMUM=3.5
  -DCMAKE_INSTALL_PREFIX=/home/marco/WSJT-X_build/.wsjtx .

This is the answer of cmake:

CMake Warning:
   No source or binary directory provided.  Both will be assumed to be the
   same as the current working directory, but note that this warning will
   become a fatal error in future CMake releases.


CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
   Compatibility with CMake < 3.10 will be removed from a future version of
   CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax   to tell CMake that the project requires at least <min> but has been updated
   to work with policies introduced by <max> or earlier.


-- The C compiler identification is GNU 15.2.0
-- The CXX compiler identification is GNU 15.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.51.0")
CMake Warning (dev) at /usr/share/cmake/Modules/ExternalProject/ shared_internal_commands.cmake:1261 (message):
   The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
   not set.  The policy's OLD behavior will be used.  When using a URL
   download, the timestamps of extracted files should preferably be that of
   the time of extraction, otherwise code that depends on the extracted
   contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
   what you want.  Update your project to the NEW behavior or specify the
   DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
   robustness issue.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:3080 (_ep_add_download_command)
   CMakeLists.txt:112 (ExternalProject_Add)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/ExternalProject/ shared_internal_commands.cmake:1261 (message):
   The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
   not set.  The policy's OLD behavior will be used.  When using a URL
   download, the timestamps of extracted files should preferably be that of
   the time of extraction, otherwise code that depends on the extracted
   contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
   what you want.  Update your project to the NEW behavior or specify the
   DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
   robustness issue.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:3080 (_ep_add_download_command)
   CMakeLists.txt:165 (ExternalProject_Add)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:199 (add_custom_target):
   The target name "install" is reserved or not valid for certain CMake
   features, such as generator expressions, and may result in undefined
   behavior.


-- Configuring incomplete, errors occurred!
marco@linux-turion64:~/WSJT-X_build/build/wsjtx-3.0.0-rc1> - DCMAKE_INSTALL_PREFIX=/home/marco/WSJT-X_build/.wsjtx .


Could someone kindly clarify to me what I need to change, in order the code being compiled without error, please? Note: marco@linux-turion64:~/WSJT-X_build/build/wsjtx-3.0.0-rc1> cmake --version
cmake version 4.1.1

TNX!

---
*73 de Marco, PY1ZRJ (former IK5BCU)*
**



Il 15/09/25 11:02, Joseph Taylor via wsjt-devel ha scritto:



_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to