Project

General

Profile

Actions

Bug #5534

closed

[v3.3.7-rc1] CMake Warning

Added by Vincenzo Romano almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Roel Standaert
Target version:
Start date:
02/02/2017
Due date:
% Done:

0%

Estimated time:
1:00 h

Description

On Ubuntu Server 16.04 I get this warning as soon as I run cmake:

CMake Warning (dev) at test/CMakeLists.txt:43 (ADD_EXECUTABLE):

Policy CMP0037 is not set: Target names should not be reserved and should

match a validity pattern. Run "cmake ---help-policy CMP0037" for policy

details. Use the cmake_policy command to set the policy and suppress this

warning.

The target name "test" is reserved or not valid for certain CMake features,

such as generator expressions, and may result in undefined behavior.

This warning is for project developers. Use -Wno-dev to suppress it.

Actions #1

Updated by Vincenzo Romano almost 8 years ago

My command line was:

cmake -DWT_CPP_11_MODE=-std=gnu++14 -DWT_SIGNALS_IMPLEMENTATION=boost.signals2 ..

The complete output was:

WT_NO_BOOST_RANDOM is OFF

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:882 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59;1.60;1.61;1.62;1.63;1.64;1.65;1.66;1.67;1.68;1.69;1.70;1.71;1.72;1.73;1.74;1.75;1.76;1.77;1.78;1.79;1.61.0;1.61;1.60.0;1.60;1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:884 ] Boost_USE_MULTITHREADED = ON

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:886 ] Boost_USE_STATIC_LIBS =

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:888 ] Boost_USE_STATIC_RUNTIME =

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:890 ] Boost_ADDITIONAL_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59;1.60;1.61;1.62;1.63;1.64;1.65;1.66;1.67;1.68;1.69;1.70;1.71;1.72;1.73;1.74;1.75;1.76;1.77;1.78;1.79

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:892 ] Boost_NO_SYSTEM_PATHS =

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:960 ] Declared as CMake or Environmental Variables:

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:962 ] BOOST_ROOT = /usr

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:964 ] BOOST_INCLUDEDIR =

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:966 ] BOOST_LIBRARYDIR =

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:968 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59;1.60;1.61;1.62;1.63;1.64;1.65;1.66;1.67;1.68;1.69;1.70;1.71;1.72;1.73;1.74;1.75;1.76;1.77;1.78;1.79;1.61.0;1.61;1.60.0;1.60;1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1061 ] location of version.hpp: /usr/include/boost/version.hpp

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1085 ] version.hpp reveals boost 1.58.0

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1171 ] guessed _boost_COMPILER = -gcc54

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1181 ] _boost_MULTITHREADED = -mt

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1224 ] _boost_RELEASE_ABI_TAG = -

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1226 ] _boost_DEBUG_ABI_TAG = -d

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1281 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH_boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for DATE_TIME_LIBRARY_RELEASE: boost_date_time-gcc54-mt-1_58;boost_date_time-gcc54-mt;boost_date_time-mt-1_58;boost_date_time-mt;boost_date_time

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for DATE_TIME_LIBRARY_DEBUG: boost_date_time-gcc54-mt-d-1_58;boost_date_time-gcc54-mt-d;boost_date_time-mt-d-1_58;boost_date_time-mt-d;boost_date_time-mt;boost_date_time

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for REGEX_LIBRARY_RELEASE: boost_regex-gcc54-mt-1_58;boost_regex-gcc54-mt;boost_regex-mt-1_58;boost_regex-mt;boost_regex

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for REGEX_LIBRARY_DEBUG: boost_regex-gcc54-mt-d-1_58;boost_regex-gcc54-mt-d;boost_regex-mt-d-1_58;boost_regex-mt-d;boost_regex-mt;boost_regex

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc54-mt-1_58;boost_program_options-gcc54-mt;boost_program_options-mt-1_58;boost_program_options-mt;boost_program_options

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc54-mt-d-1_58;boost_program_options-gcc54-mt-d;boost_program_options-mt-d-1_58;boost_program_options-mt-d;boost_program_options-mt;boost_program_options

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for SIGNALS_LIBRARY_RELEASE: boost_signals-gcc54-mt-1_58;boost_signals-gcc54-mt;boost_signals-mt-1_58;boost_signals-mt;boost_signals

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for SIGNALS_LIBRARY_DEBUG: boost_signals-gcc54-mt-d-1_58;boost_signals-gcc54-mt-d;boost_signals-mt-d-1_58;boost_signals-mt-d;boost_signals-mt;boost_signals

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc54-mt-1_58;boost_system-gcc54-mt;boost_system-mt-1_58;boost_system-mt;boost_system

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc54-mt-d-1_58;boost_system-gcc54-mt-d;boost_system-mt-d-1_58;boost_system-mt-d;boost_system-mt;boost_system

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-gcc54-mt-1_58;boost_filesystem-gcc54-mt;boost_filesystem-mt-1_58;boost_filesystem-mt;boost_filesystem

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-gcc54-mt-d-1_58;boost_filesystem-gcc54-mt-d;boost_filesystem-mt-d-1_58;boost_filesystem-mt-d;boost_filesystem-mt;boost_filesystem

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-gcc54-mt-1_58;boost_thread-gcc54-mt;boost_thread-mt-1_58;boost_thread-mt;boost_thread

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for THREAD_LIBRARY_DEBUG: boost_thread-gcc54-mt-d-1_58;boost_thread-gcc54-mt-d;boost_thread-mt-d-1_58;boost_thread-mt-d;boost_thread-mt;boost_thread

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for RANDOM_LIBRARY_RELEASE: boost_random-gcc54-mt-1_58;boost_random-gcc54-mt;boost_random-mt-1_58;boost_random-mt;boost_random

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for RANDOM_LIBRARY_DEBUG: boost_random-gcc54-mt-d-1_58;boost_random-gcc54-mt-d;boost_random-mt-d-1_58;boost_random-mt-d;boost_random-mt;boost_random

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for CHRONO_LIBRARY_RELEASE: boost_chrono-gcc54-mt-1_58;boost_chrono-gcc54-mt;boost_chrono-mt-1_58;boost_chrono-mt;boost_chrono

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for CHRONO_LIBRARY_DEBUG: boost_chrono-gcc54-mt-d-1_58;boost_chrono-gcc54-mt-d;boost_chrono-mt-d-1_58;boost_chrono-mt-d;boost_chrono-mt;boost_chrono

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1404 ] Searching for ATOMIC_LIBRARY_RELEASE: boost_atomic-gcc54-mt-1_58;boost_atomic-gcc54-mt;boost_atomic-mt-1_58;boost_atomic-mt;boost_atomic

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_RELEASE = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1446 ] Searching for ATOMIC_LIBRARY_DEBUG: boost_atomic-gcc54-mt-d-1_58;boost_atomic-gcc54-mt-d;boost_atomic-mt-d-1_58;boost_atomic-mt-d;boost_atomic-mt;boost_atomic

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:378 ] Boost_LIBRARY_DIR_DEBUG = /usr/lib/x86_64-linux-gnu _boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/lib/x86_64-linux-gnu;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH

--- [ /usr/share/cmake-3.5/Modules/FindBoost.cmake:1516 ] Boost_FOUND = 1

--- Boost version: 1.58.0

--- Found the following Boost libraries:

--- date_time

--- regex

--- program_options

--- signals

--- system

--- filesystem

--- thread

--- random

--- chrono

--- atomic

--- Found png libraries

--- Found libharu libraries

qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

--- Found unsuitable Qt version "" from NOTFOUND

Enabling multi threading.

--- Boost 105800 > 1.53, WT_SIGNALS_IMPLEMENTATION = boost.signals2 recommended

--- Selecting boost.signals2

Disabled WRasterimage support. Set WT_WRASTERIMAGE_IMPLEMENTATION to GraphicsMagick or skia.

--- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

Disabling crypto support (Auth::SHA1HashFunction, HTTPS support): requires OpenSSL.

Indicate the location of your OpenSSL library using -DSSL_PREFIX=...

Disabling raster image support (WRasterImage): set WT_WRASTERIMAGE_IMPLEMENTATION to GraphicsMagick or skia.

Disabling server-side opengl rendering for WGLWidget: requires gl, glew and WRasterImage (GraphicsMagick or skia).

Enabling advanced font support using libpango

Wt::Dbo: building SQLite3 backend.

Wt::Dbo: building Postgres backend.

Wt::Dbo: not building Firebird backend.

Indicate the location of your FirebirdSQL and IBPP installation using

-DFIREBIRD_PREFIX=... -DIBPP_SRC_DIRECTORY=...

Wt::Dbo: not building MySQL backend.

Indicate the location of your mariadb or mysqlclient installation using

-DMYSQL_PREFIX=... and the library to search for (e.g. mariadb or

mysqlclient) using -DMYSQL_LIBRARY=...

Disabling ISAPI.

Enabling FastCGI connector.

Enabling built-in httpd.

--- Not building mandelbrot example: requires Wt::WRasterImage.

--- Not building style example: requires WRasterImage.

--- Not building wtwithqt example.

--- wtwithqt example requires a Qt4 installation.

CMake Warning (dev) at test/CMakeLists.txt:43 (ADD_EXECUTABLE):

Policy CMP0037 is not set: Target names should not be reserved and should

match a validity pattern. Run "cmake ---help-policy CMP0037" for policy

details. Use the cmake_policy command to set the policy and suppress this

warning.

The target name "test" is reserved or not valid for certain CMake features,

such as generator expressions, and may result in undefined behavior.

This warning is for project developers. Use -Wno-dev to suppress it.

Testing Wt::Dbo using Postgres backend

Testing Wt::Dbo using Sqlite3 backend

--- Configuring done

--- Generating done

--- Build files have been written to: /home/enzo/Desktop/Temp/wt-3.3.7-rc1/build

Actions #2

Updated by Roel Standaert over 7 years ago

  • Status changed from New to Implemented @Emweb
  • Assignee set to Roel Standaert

I renamed the test target to test.wt.

Actions #3

Updated by Roel Standaert over 7 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #4

Updated by Roel Standaert over 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF