Merge topic 'test-external-cmake'
9608ef6f
Tests: Optionally configure tests exclusively, with an external CMake9f5bd180
Tests: Drop CMAKE_TEST_GENERATOR(|_TOOLSET) variables76477267
Tests: Drop CMAKE_TEST_MAKEPROGRAM variablea8a9fb7e
Tests: Rename CMAKE_TEST_MAKEPROGRAM uses for explicit make program40475573
Tests: Rename CMAKE_TEST_MAKEPROGRAM uses for nested test projectsf99734b2
Tests: Rename CMAKE_TEST_DEVENV -> CMake_TEST_DEVENV3c01ee5a
Tests: Drop CMAKE_TEST_MSVC and test MSVC directlydaf0a5fe
Tests: Drop CMAKE_TEST_GENERATOR and CMAKE_TEST_MAKEPROGRAM optionse5096312
Tests: Drop kwsys test
This commit is contained in:
commit
cefa80236d
331
CMakeLists.txt
331
CMakeLists.txt
|
@ -21,7 +21,9 @@ if(CMAKE_BOOTSTRAP)
|
||||||
unset(CMAKE_BOOTSTRAP CACHE)
|
unset(CMAKE_BOOTSTRAP CACHE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMake_BIN_DIR ${CMake_BINARY_DIR}/bin)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
|
set(CMake_BIN_DIR ${CMake_BINARY_DIR}/bin)
|
||||||
|
endif()
|
||||||
|
|
||||||
if("${CMake_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
|
if("${CMake_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
|
||||||
# Disallow architecture-specific try_run. It may not run on the host.
|
# Disallow architecture-specific try_run. It may not run on the host.
|
||||||
|
@ -102,9 +104,11 @@ endmacro()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_BUILD_ON_VISUAL_STUDIO 0)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
if(WIN32 AND NOT UNIX AND NOT BORLAND AND NOT MINGW )
|
set(CMAKE_BUILD_ON_VISUAL_STUDIO 0)
|
||||||
set(CMAKE_BUILD_ON_VISUAL_STUDIO 1)
|
if(WIN32 AND NOT UNIX AND NOT BORLAND AND NOT MINGW )
|
||||||
|
set(CMAKE_BUILD_ON_VISUAL_STUDIO 1)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
@ -114,29 +118,6 @@ endif()
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
macro(CMAKE_SETUP_TESTING)
|
macro(CMAKE_SETUP_TESTING)
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
set(CMAKE_TEST_GENERATOR "" CACHE STRING
|
|
||||||
"Generator used when running tests")
|
|
||||||
set(CMAKE_TEST_MAKEPROGRAM "" CACHE FILEPATH
|
|
||||||
"Generator used when running tests")
|
|
||||||
if(NOT CMAKE_TEST_GENERATOR)
|
|
||||||
set(CMAKE_TEST_GENERATOR "${CMAKE_GENERATOR}")
|
|
||||||
set(CMAKE_TEST_GENERATOR_TOOLSET "${CMAKE_GENERATOR_TOOLSET}")
|
|
||||||
else()
|
|
||||||
set(CMAKE_TEST_DIFFERENT_GENERATOR TRUE)
|
|
||||||
set(CMAKE_TEST_GENERATOR_TOOLSET "")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Are we testing with the MSVC compiler?
|
|
||||||
set(CMAKE_TEST_MSVC 0)
|
|
||||||
if(MSVC AND NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
|
||||||
set(CMAKE_TEST_MSVC 1)
|
|
||||||
else()
|
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "NMake" OR
|
|
||||||
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio")
|
|
||||||
set(CMAKE_TEST_MSVC 1)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(CMAKE_TEST_SYSTEM_LIBRARIES 0)
|
set(CMAKE_TEST_SYSTEM_LIBRARIES 0)
|
||||||
foreach(util CURL EXPAT XMLRPC ZLIB)
|
foreach(util CURL EXPAT XMLRPC ZLIB)
|
||||||
if(CMAKE_USE_SYSTEM_${util})
|
if(CMAKE_USE_SYSTEM_${util})
|
||||||
|
@ -149,9 +130,19 @@ macro(CMAKE_SETUP_TESTING)
|
||||||
# the ctest from this cmake is used for testing
|
# the ctest from this cmake is used for testing
|
||||||
# and not the ctest from the cmake building and testing
|
# and not the ctest from the cmake building and testing
|
||||||
# cmake.
|
# cmake.
|
||||||
set(CMAKE_CTEST_COMMAND "${CMake_BIN_DIR}/ctest")
|
if(CMake_TEST_EXTERNAL_CMAKE)
|
||||||
set(CMAKE_CMAKE_COMMAND "${CMake_BIN_DIR}/cmake")
|
set(CMAKE_CTEST_COMMAND "${CMake_TEST_EXTERNAL_CMAKE}/ctest")
|
||||||
set(CMAKE_CPACK_COMMAND "${CMake_BIN_DIR}/cpack")
|
set(CMAKE_CMAKE_COMMAND "${CMake_TEST_EXTERNAL_CMAKE}/cmake")
|
||||||
|
set(CMAKE_CPACK_COMMAND "${CMake_TEST_EXTERNAL_CMAKE}/cpack")
|
||||||
|
foreach(exe cmake ctest cpack)
|
||||||
|
add_executable(${exe} IMPORTED)
|
||||||
|
set_property(TARGET ${exe} PROPERTY IMPORTED_LOCATION ${CMake_TEST_EXTERNAL_CMAKE}/${exe})
|
||||||
|
endforeach()
|
||||||
|
else()
|
||||||
|
set(CMAKE_CTEST_COMMAND "${CMake_BIN_DIR}/ctest")
|
||||||
|
set(CMAKE_CMAKE_COMMAND "${CMake_BIN_DIR}/cmake")
|
||||||
|
set(CMAKE_CPACK_COMMAND "${CMake_BIN_DIR}/cpack")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# configure some files for testing
|
# configure some files for testing
|
||||||
|
@ -385,18 +376,20 @@ macro (CMAKE_BUILD_UTILITIES)
|
||||||
endmacro ()
|
endmacro ()
|
||||||
|
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
if(CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD")
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
execute_process(COMMAND ${CMAKE_CXX_COMPILER}
|
if(CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD")
|
||||||
${CMAKE_CXX_COMPILER_ARG1} -dumpversion
|
execute_process(COMMAND ${CMAKE_CXX_COMPILER}
|
||||||
OUTPUT_VARIABLE _GXX_VERSION
|
${CMAKE_CXX_COMPILER_ARG1} -dumpversion
|
||||||
)
|
OUTPUT_VARIABLE _GXX_VERSION
|
||||||
string(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
|
)
|
||||||
_GXX_VERSION_SHORT ${_GXX_VERSION})
|
string(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
|
||||||
if(_GXX_VERSION_SHORT EQUAL 33)
|
_GXX_VERSION_SHORT ${_GXX_VERSION})
|
||||||
message(FATAL_ERROR
|
if(_GXX_VERSION_SHORT EQUAL 33)
|
||||||
"GXX 3.3 on OpenBSD is known to cause CPack to Crash.\n"
|
message(FATAL_ERROR
|
||||||
"Please use GXX 4.2 or greater to build CMake on OpenBSD\n"
|
"GXX 3.3 on OpenBSD is known to cause CPack to Crash.\n"
|
||||||
"${CMAKE_CXX_COMPILER} version is: ${_GXX_VERSION}")
|
"Please use GXX 4.2 or greater to build CMake on OpenBSD\n"
|
||||||
|
"${CMAKE_CXX_COMPILER} version is: ${_GXX_VERSION}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -415,31 +408,33 @@ include (${CMAKE_ROOT}/Modules/Dart.cmake)
|
||||||
set_directory_properties(PROPERTIES
|
set_directory_properties(PROPERTIES
|
||||||
TEST_INCLUDE_FILE "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake")
|
TEST_INCLUDE_FILE "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake")
|
||||||
|
|
||||||
# where to write the resulting executables and libraries
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
# where to write the resulting executables and libraries
|
||||||
set(EXECUTABLE_OUTPUT_PATH "" CACHE INTERNAL "No configurable exe dir.")
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
set(LIBRARY_OUTPUT_PATH "" CACHE INTERNAL
|
set(EXECUTABLE_OUTPUT_PATH "" CACHE INTERNAL "No configurable exe dir.")
|
||||||
"Where to put the libraries for CMake")
|
set(LIBRARY_OUTPUT_PATH "" CACHE INTERNAL
|
||||||
|
"Where to put the libraries for CMake")
|
||||||
|
|
||||||
# The CMake executables usually do not need any rpath to run in the build or
|
# The CMake executables usually do not need any rpath to run in the build or
|
||||||
# install tree.
|
# install tree.
|
||||||
set(CMAKE_SKIP_RPATH ON CACHE INTERNAL "CMake does not need RPATHs.")
|
set(CMAKE_SKIP_RPATH ON CACHE INTERNAL "CMake does not need RPATHs.")
|
||||||
|
|
||||||
# Load install destinations.
|
# Load install destinations.
|
||||||
include(Source/CMakeInstallDestinations.cmake)
|
include(Source/CMakeInstallDestinations.cmake)
|
||||||
|
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
include(${CMake_SOURCE_DIR}/Tests/CMakeInstall.cmake)
|
include(${CMake_SOURCE_DIR}/Tests/CMakeInstall.cmake)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# include special compile flags for some compilers
|
||||||
|
include(CompileFlags.cmake)
|
||||||
|
|
||||||
|
# no clue why we are testing for this here
|
||||||
|
include(CheckSymbolExists)
|
||||||
|
CHECK_SYMBOL_EXISTS(unsetenv "stdlib.h" HAVE_UNSETENV)
|
||||||
|
CHECK_SYMBOL_EXISTS(environ "stdlib.h" HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# include special compile flags for some compilers
|
|
||||||
include(CompileFlags.cmake)
|
|
||||||
|
|
||||||
# no clue why we are testing for this here
|
|
||||||
include(CheckSymbolExists)
|
|
||||||
CHECK_SYMBOL_EXISTS(unsetenv "stdlib.h" HAVE_UNSETENV)
|
|
||||||
CHECK_SYMBOL_EXISTS(environ "stdlib.h" HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE)
|
|
||||||
|
|
||||||
# CMAKE_TESTS_CDASH_SERVER: CDash server used by CMake/Tests.
|
# CMAKE_TESTS_CDASH_SERVER: CDash server used by CMake/Tests.
|
||||||
#
|
#
|
||||||
# If not defined or "", this variable defaults to the server at
|
# If not defined or "", this variable defaults to the server at
|
||||||
|
@ -457,70 +452,73 @@ if("x${CMAKE_TESTS_CDASH_SERVER}" STREQUAL "x")
|
||||||
set(CMAKE_TESTS_CDASH_SERVER "http://www.cdash.org/CDash")
|
set(CMAKE_TESTS_CDASH_SERVER "http://www.cdash.org/CDash")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# build the utilities (a macro defined in this file)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
CMAKE_BUILD_UTILITIES()
|
# build the utilities (a macro defined in this file)
|
||||||
|
CMAKE_BUILD_UTILITIES()
|
||||||
|
|
||||||
# On NetBSD ncurses is required, since curses doesn't have the wsyncup()
|
# On NetBSD ncurses is required, since curses doesn't have the wsyncup()
|
||||||
# function. ncurses is installed via pkgsrc, so the library is in /usr/pkg/lib,
|
# function. ncurses is installed via pkgsrc, so the library is in /usr/pkg/lib,
|
||||||
# which isn't in the default linker search path. So without RPATH ccmake
|
# which isn't in the default linker search path. So without RPATH ccmake
|
||||||
# doesn't run and the build doesn't succeed since ccmake is executed for
|
# doesn't run and the build doesn't succeed since ccmake is executed for
|
||||||
# generating the documentation.
|
# generating the documentation.
|
||||||
if(BUILD_CursesDialog)
|
if(BUILD_CursesDialog)
|
||||||
get_filename_component(_CURSES_DIR "${CURSES_LIBRARY}" PATH)
|
get_filename_component(_CURSES_DIR "${CURSES_LIBRARY}" PATH)
|
||||||
set(CURSES_NEED_RPATH FALSE)
|
set(CURSES_NEED_RPATH FALSE)
|
||||||
if(NOT "${_CURSES_DIR}" STREQUAL "/lib" AND NOT "${_CURSES_DIR}" STREQUAL "/usr/lib" AND NOT "${_CURSES_DIR}" STREQUAL "/lib64" AND NOT "${_CURSES_DIR}" STREQUAL "/usr/lib64")
|
if(NOT "${_CURSES_DIR}" STREQUAL "/lib" AND NOT "${_CURSES_DIR}" STREQUAL "/usr/lib" AND NOT "${_CURSES_DIR}" STREQUAL "/lib64" AND NOT "${_CURSES_DIR}" STREQUAL "/usr/lib64")
|
||||||
set(CURSES_NEED_RPATH TRUE)
|
set(CURSES_NEED_RPATH TRUE)
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(BUILD_QtDialog)
|
|
||||||
if(APPLE)
|
|
||||||
set(CMAKE_BUNDLE_VERSION
|
|
||||||
"${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}")
|
|
||||||
set(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}")
|
|
||||||
# make sure CMAKE_INSTALL_PREFIX ends in /
|
|
||||||
string(LENGTH "${CMAKE_INSTALL_PREFIX}" LEN)
|
|
||||||
math(EXPR LEN "${LEN} -1" )
|
|
||||||
string(SUBSTRING "${CMAKE_INSTALL_PREFIX}" ${LEN} 1 ENDCH)
|
|
||||||
if(NOT "${ENDCH}" STREQUAL "/")
|
|
||||||
set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/")
|
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_INSTALL_PREFIX
|
|
||||||
"${CMAKE_INSTALL_PREFIX}CMake.app/Contents")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(QT_NEED_RPATH FALSE)
|
if(BUILD_QtDialog)
|
||||||
if(NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib64" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib64")
|
if(APPLE)
|
||||||
set(QT_NEED_RPATH TRUE)
|
set(CMAKE_BUNDLE_VERSION
|
||||||
|
"${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}")
|
||||||
|
set(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}")
|
||||||
|
# make sure CMAKE_INSTALL_PREFIX ends in /
|
||||||
|
string(LENGTH "${CMAKE_INSTALL_PREFIX}" LEN)
|
||||||
|
math(EXPR LEN "${LEN} -1" )
|
||||||
|
string(SUBSTRING "${CMAKE_INSTALL_PREFIX}" ${LEN} 1 ENDCH)
|
||||||
|
if(NOT "${ENDCH}" STREQUAL "/")
|
||||||
|
set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/")
|
||||||
|
endif()
|
||||||
|
set(CMAKE_INSTALL_PREFIX
|
||||||
|
"${CMAKE_INSTALL_PREFIX}CMake.app/Contents")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(QT_NEED_RPATH FALSE)
|
||||||
|
if(NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib64" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib64")
|
||||||
|
set(QT_NEED_RPATH TRUE)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
# The same might be true on other systems for other libraries.
|
||||||
|
# Then only enable RPATH if we have are building at least with cmake 2.4,
|
||||||
|
# since this one has much better RPATH features than cmake 2.2.
|
||||||
|
# The executables are then built with the RPATH for the libraries outside
|
||||||
|
# the build tree, which is both the build and the install RPATH.
|
||||||
|
if (UNIX)
|
||||||
|
if( CMAKE_USE_SYSTEM_CURL OR CMAKE_USE_SYSTEM_ZLIB
|
||||||
|
OR CMAKE_USE_SYSTEM_EXPAT OR CTEST_USE_XMLRPC OR CURSES_NEED_RPATH OR QT_NEED_RPATH)
|
||||||
|
set(CMAKE_SKIP_RPATH OFF CACHE INTERNAL "CMake built with RPATH.")
|
||||||
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||||
|
endif()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
|
# add the uninstall support
|
||||||
|
configure_file(
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||||
|
@ONLY)
|
||||||
|
add_custom_target(uninstall
|
||||||
|
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||||||
|
|
||||||
|
include (CMakeCPack.cmake)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# The same might be true on other systems for other libraries.
|
|
||||||
# Then only enable RPATH if we have are building at least with cmake 2.4,
|
|
||||||
# since this one has much better RPATH features than cmake 2.2.
|
|
||||||
# The executables are then built with the RPATH for the libraries outside
|
|
||||||
# the build tree, which is both the build and the install RPATH.
|
|
||||||
if (UNIX)
|
|
||||||
if( CMAKE_USE_SYSTEM_CURL OR CMAKE_USE_SYSTEM_ZLIB
|
|
||||||
OR CMAKE_USE_SYSTEM_EXPAT OR CTEST_USE_XMLRPC OR CURSES_NEED_RPATH OR QT_NEED_RPATH)
|
|
||||||
set(CMAKE_SKIP_RPATH OFF CACHE INTERNAL "CMake built with RPATH.")
|
|
||||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
||||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
|
||||||
endif()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
|
|
||||||
# add the uninstall support
|
|
||||||
configure_file(
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
|
||||||
@ONLY)
|
|
||||||
add_custom_target(uninstall
|
|
||||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
|
||||||
|
|
||||||
include (CMakeCPack.cmake)
|
|
||||||
|
|
||||||
# setup some Testing support (a macro defined in this file)
|
# setup some Testing support (a macro defined in this file)
|
||||||
CMAKE_SETUP_TESTING()
|
CMAKE_SETUP_TESTING()
|
||||||
configure_file(
|
configure_file(
|
||||||
|
@ -528,62 +526,69 @@ configure_file(
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/DartLocal.conf"
|
"${CMAKE_CURRENT_BINARY_DIR}/DartLocal.conf"
|
||||||
COPYONLY)
|
COPYONLY)
|
||||||
|
|
||||||
if(NOT CMake_VERSION_IS_RELEASE)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND
|
if(NOT CMake_VERSION_IS_RELEASE)
|
||||||
NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 4.2)
|
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND
|
||||||
set(C_FLAGS_LIST -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts
|
NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 4.2)
|
||||||
-Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security
|
set(C_FLAGS_LIST -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts
|
||||||
-Wmissing-format-attribute -fno-common -Wundef
|
-Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security
|
||||||
)
|
-Wmissing-format-attribute -fno-common -Wundef
|
||||||
set(CXX_FLAGS_LIST -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W
|
)
|
||||||
-Wshadow -Wpointer-arith -Wformat-security -Wundef
|
set(CXX_FLAGS_LIST -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W
|
||||||
)
|
-Wshadow -Wpointer-arith -Wformat-security -Wundef
|
||||||
|
)
|
||||||
|
|
||||||
foreach(FLAG_LANG C CXX)
|
foreach(FLAG_LANG C CXX)
|
||||||
foreach(FLAG ${${FLAG_LANG}_FLAGS_LIST})
|
foreach(FLAG ${${FLAG_LANG}_FLAGS_LIST})
|
||||||
if(NOT " ${CMAKE_${FLAG_LANG}_FLAGS} " MATCHES " ${FLAG} ")
|
if(NOT " ${CMAKE_${FLAG_LANG}_FLAGS} " MATCHES " ${FLAG} ")
|
||||||
set(CMAKE_${FLAG_LANG}_FLAGS "${CMAKE_${FLAG_LANG}_FLAGS} ${FLAG}")
|
set(CMAKE_${FLAG_LANG}_FLAGS "${CMAKE_${FLAG_LANG}_FLAGS} ${FLAG}")
|
||||||
endif()
|
endif()
|
||||||
|
endforeach()
|
||||||
endforeach()
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
unset(C_FLAGS_LIST)
|
unset(C_FLAGS_LIST)
|
||||||
unset(CXX_FLAGS_LIST)
|
unset(CXX_FLAGS_LIST)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# build the remaining subdirectories
|
||||||
|
add_subdirectory(Source)
|
||||||
|
add_subdirectory(Utilities)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# build the remaining subdirectories
|
|
||||||
add_subdirectory(Source)
|
|
||||||
add_subdirectory(Utilities)
|
|
||||||
add_subdirectory(Tests)
|
add_subdirectory(Tests)
|
||||||
|
|
||||||
if(BUILD_TESTING)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
CMAKE_SET_TARGET_FOLDER(CMakeLibTests "Tests")
|
if(BUILD_TESTING)
|
||||||
endif()
|
CMAKE_SET_TARGET_FOLDER(CMakeLibTests "Tests")
|
||||||
CMAKE_SET_TARGET_FOLDER(cmw9xcom "Utilities/Win9xCompat")
|
endif()
|
||||||
if(TARGET documentation)
|
CMAKE_SET_TARGET_FOLDER(cmw9xcom "Utilities/Win9xCompat")
|
||||||
CMAKE_SET_TARGET_FOLDER(documentation "Documentation")
|
if(TARGET documentation)
|
||||||
|
CMAKE_SET_TARGET_FOLDER(documentation "Documentation")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# add a test
|
# add a test
|
||||||
add_test(SystemInformationNew "${CMAKE_CMAKE_COMMAND}"
|
add_test(SystemInformationNew "${CMAKE_CMAKE_COMMAND}"
|
||||||
--system-information -G "${CMAKE_TEST_GENERATOR}" )
|
--system-information -G "${CMAKE_GENERATOR}" )
|
||||||
|
|
||||||
# Install license file as it requires.
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
install(FILES Copyright.txt DESTINATION ${CMAKE_DOC_DIR})
|
# Install license file as it requires.
|
||||||
|
install(FILES Copyright.txt DESTINATION ${CMAKE_DOC_DIR})
|
||||||
|
|
||||||
# Install script directories.
|
# Install script directories.
|
||||||
install(
|
install(
|
||||||
DIRECTORY Help Modules Templates
|
DIRECTORY Help Modules Templates
|
||||||
DESTINATION ${CMAKE_DATA_DIR}
|
DESTINATION ${CMAKE_DATA_DIR}
|
||||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||||
DIRECTORY_PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE
|
DIRECTORY_PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE
|
||||||
GROUP_READ GROUP_EXECUTE
|
GROUP_READ GROUP_EXECUTE
|
||||||
WORLD_READ WORLD_EXECUTE
|
WORLD_READ WORLD_EXECUTE
|
||||||
PATTERN "*.sh*" PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE
|
PATTERN "*.sh*" PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE
|
||||||
GROUP_READ GROUP_EXECUTE
|
GROUP_READ GROUP_EXECUTE
|
||||||
WORLD_READ WORLD_EXECUTE
|
WORLD_READ WORLD_EXECUTE
|
||||||
)
|
)
|
||||||
|
|
||||||
# Install auxiliary files integrating with other tools.
|
# Install auxiliary files integrating with other tools.
|
||||||
add_subdirectory(Auxiliary)
|
add_subdirectory(Auxiliary)
|
||||||
|
endif()
|
||||||
|
|
|
@ -11,8 +11,8 @@ file(REMOVE "@CMAKE_BUILD_TEST_SOURCE_DIR@/CMakeCache.txt")
|
||||||
message("running: ${CMAKE_COMMAND}")
|
message("running: ${CMAKE_COMMAND}")
|
||||||
execute_process(COMMAND "${CMAKE_COMMAND}"
|
execute_process(COMMAND "${CMAKE_COMMAND}"
|
||||||
"@CMAKE_BUILD_TEST_SOURCE_DIR@"
|
"@CMAKE_BUILD_TEST_SOURCE_DIR@"
|
||||||
"-G@CMAKE_TEST_GENERATOR@"
|
"-G@CMAKE_GENERATOR@"
|
||||||
-T "@CMAKE_TEST_GENERATOR_TOOLSET@"
|
-T "@CMAKE_GENERATOR_TOOLSET@"
|
||||||
WORKING_DIRECTORY "@CMAKE_BUILD_TEST_BINARY_DIR@"
|
WORKING_DIRECTORY "@CMAKE_BUILD_TEST_BINARY_DIR@"
|
||||||
RESULT_VARIABLE RESULT)
|
RESULT_VARIABLE RESULT)
|
||||||
if(RESULT)
|
if(RESULT)
|
||||||
|
|
|
@ -45,26 +45,27 @@ configure_file(${CMake_SOURCE_DIR}/Tests/EnforceConfig.cmake.in
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
set(CMAKE_TEST_DEVENV "")
|
set(CMake_TEST_DEVENV "")
|
||||||
if(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
if(CMAKE_GENERATOR MATCHES "Visual Studio [7-9] " AND
|
||||||
if(CMAKE_TEST_GENERATOR MATCHES "Visual Studio")
|
NOT CMAKE_MAKE_PROGRAM MATCHES "[mM][sS][bB][uU][iI][lL][dD]\\.[eE][xX][eE]")
|
||||||
set(CMAKE_TEST_MAKEPROGRAM "")
|
set(CMake_TEST_DEVENV "${CMAKE_MAKE_PROGRAM}")
|
||||||
else()
|
|
||||||
set(CMAKE_TEST_MAKEPROGRAM "${CMAKE_MAKE_PROGRAM}")
|
|
||||||
endif()
|
|
||||||
if(CMAKE_TEST_GENERATOR MATCHES "Visual Studio [7-9] " AND
|
|
||||||
NOT CMAKE_MAKE_PROGRAM MATCHES "[mM][sS][bB][uU][iI][lL][dD]\\.[eE][xX][eE]")
|
|
||||||
set(CMAKE_TEST_DEVENV "${CMAKE_MAKE_PROGRAM}")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "Unix Makefiles" OR ("${CMAKE_TEST_GENERATOR}" MATCHES Ninja AND NOT WIN32))
|
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
set(TEST_CompileCommandOutput 1)
|
set(CMake_TEST_EXPLICIT_MAKE_PROGRAM "")
|
||||||
|
else()
|
||||||
|
set(CMake_TEST_EXPLICIT_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
|
if("${CMAKE_GENERATOR}" MATCHES "Unix Makefiles" OR ("${CMAKE_GENERATOR}" MATCHES Ninja AND NOT WIN32))
|
||||||
|
set(TEST_CompileCommandOutput 1)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(MAKE_IS_GNU )
|
set(MAKE_IS_GNU )
|
||||||
if(CMAKE_TEST_MAKEPROGRAM MATCHES make)
|
if(CMAKE_MAKE_PROGRAM MATCHES make)
|
||||||
execute_process(COMMAND ${CMAKE_TEST_MAKEPROGRAM} no_such_target --version
|
execute_process(COMMAND ${CMAKE_MAKE_PROGRAM} no_such_target --version
|
||||||
RESULT_VARIABLE res OUTPUT_VARIABLE out ERROR_VARIABLE out)
|
RESULT_VARIABLE res OUTPUT_VARIABLE out ERROR_VARIABLE out)
|
||||||
if("${res}" STREQUAL "0")
|
if("${res}" STREQUAL "0")
|
||||||
if("${out}" MATCHES "GNU")
|
if("${out}" MATCHES "GNU")
|
||||||
|
@ -75,34 +76,38 @@ if(BUILD_TESTING)
|
||||||
|
|
||||||
# some old versions of make simply cannot handle spaces in paths
|
# some old versions of make simply cannot handle spaces in paths
|
||||||
if (MAKE_IS_GNU OR
|
if (MAKE_IS_GNU OR
|
||||||
CMAKE_TEST_MAKEPROGRAM MATCHES "nmake|gmake|wmake" OR
|
CMAKE_MAKE_PROGRAM MATCHES "nmake|gmake|wmake" OR
|
||||||
CMAKE_TEST_GENERATOR MATCHES "Visual Studio|XCode|Borland")
|
CMAKE_GENERATOR MATCHES "Visual Studio|XCode|Borland")
|
||||||
set(MAKE_SUPPORTS_SPACES 1)
|
set(MAKE_SUPPORTS_SPACES 1)
|
||||||
else()
|
else()
|
||||||
set(MAKE_SUPPORTS_SPACES 0)
|
set(MAKE_SUPPORTS_SPACES 0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(build_generator_args
|
set(build_generator_args
|
||||||
--build-generator ${CMAKE_TEST_GENERATOR}
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
)
|
)
|
||||||
if(CMAKE_TEST_GENERATOR_TOOLSET)
|
if(CMAKE_GENERATOR_TOOLSET)
|
||||||
list(APPEND build_generator_args
|
list(APPEND build_generator_args
|
||||||
--build-generator-toolset ${CMAKE_TEST_GENERATOR_TOOLSET}
|
--build-generator-toolset ${CMAKE_GENERATOR_TOOLSET}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(build_options)
|
set(build_options)
|
||||||
if(CMAKE_TEST_MAKEPROGRAM)
|
if(CMake_TEST_EXPLICIT_MAKE_PROGRAM)
|
||||||
list(APPEND build_options -DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_TEST_MAKEPROGRAM})
|
list(APPEND build_options -DCMAKE_MAKE_PROGRAM:FILEPATH=${CMake_TEST_EXPLICIT_MAKE_PROGRAM})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(CMakeLib)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
|
add_subdirectory(CMakeLib)
|
||||||
|
endif()
|
||||||
add_subdirectory(CMakeOnly)
|
add_subdirectory(CMakeOnly)
|
||||||
add_subdirectory(RunCMake)
|
add_subdirectory(RunCMake)
|
||||||
|
|
||||||
add_subdirectory(FindPackageModeMakefileTest)
|
add_subdirectory(FindPackageModeMakefileTest)
|
||||||
|
|
||||||
add_subdirectory(CTestTestMemcheck)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
|
add_subdirectory(CTestTestMemcheck)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Collect a list of all test build directories.
|
# Collect a list of all test build directories.
|
||||||
set(TEST_BUILD_DIRS)
|
set(TEST_BUILD_DIRS)
|
||||||
|
@ -199,8 +204,8 @@ if(BUILD_TESTING)
|
||||||
set(TEST_RESOURCES TRUE)
|
set(TEST_RESOURCES TRUE)
|
||||||
endif()
|
endif()
|
||||||
# for borland and watcom there is no resource support
|
# for borland and watcom there is no resource support
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "WMake" OR
|
if("${CMAKE_GENERATOR}" MATCHES "WMake" OR
|
||||||
"${CMAKE_TEST_GENERATOR}" MATCHES "Borland")
|
"${CMAKE_GENERATOR}" MATCHES "Borland")
|
||||||
set(TEST_RESOURCES FALSE)
|
set(TEST_RESOURCES FALSE)
|
||||||
endif()
|
endif()
|
||||||
if(TEST_RESOURCES)
|
if(TEST_RESOURCES)
|
||||||
|
@ -249,7 +254,9 @@ if(BUILD_TESTING)
|
||||||
ADD_TEST_MACRO(SetLang SetLang)
|
ADD_TEST_MACRO(SetLang SetLang)
|
||||||
ADD_TEST_MACRO(EmptyProperty EmptyProperty)
|
ADD_TEST_MACRO(EmptyProperty EmptyProperty)
|
||||||
ADD_TEST_MACRO(ExternalOBJ ExternalOBJ)
|
ADD_TEST_MACRO(ExternalOBJ ExternalOBJ)
|
||||||
ADD_TEST_MACRO(LoadCommand LoadedCommand)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
|
ADD_TEST_MACRO(LoadCommand LoadedCommand)
|
||||||
|
endif()
|
||||||
ADD_TEST_MACRO(LinkDirectory bin/LinkDirectory)
|
ADD_TEST_MACRO(LinkDirectory bin/LinkDirectory)
|
||||||
ADD_TEST_MACRO(LinkLanguage LinkLanguage)
|
ADD_TEST_MACRO(LinkLanguage LinkLanguage)
|
||||||
ADD_TEST_MACRO(LinkLine LinkLine)
|
ADD_TEST_MACRO(LinkLine LinkLine)
|
||||||
|
@ -260,7 +267,7 @@ if(BUILD_TESTING)
|
||||||
ADD_TEST_MACRO(Assembler HelloAsm)
|
ADD_TEST_MACRO(Assembler HelloAsm)
|
||||||
ADD_TEST_MACRO(SourceGroups SourceGroups)
|
ADD_TEST_MACRO(SourceGroups SourceGroups)
|
||||||
ADD_TEST_MACRO(Preprocess Preprocess)
|
ADD_TEST_MACRO(Preprocess Preprocess)
|
||||||
set(ExportImport_BUILD_OPTIONS -DCMAKE_TEST_MAKEPROGRAM:FILEPATH=${CMAKE_TEST_MAKEPROGRAM})
|
set(ExportImport_BUILD_OPTIONS -DCMake_TEST_NESTED_MAKE_PROGRAM:FILEPATH=${CMake_TEST_EXPLICIT_MAKE_PROGRAM})
|
||||||
ADD_TEST_MACRO(ExportImport ExportImport)
|
ADD_TEST_MACRO(ExportImport ExportImport)
|
||||||
ADD_TEST_MACRO(Unset Unset)
|
ADD_TEST_MACRO(Unset Unset)
|
||||||
ADD_TEST_MACRO(PolicyScope PolicyScope)
|
ADD_TEST_MACRO(PolicyScope PolicyScope)
|
||||||
|
@ -276,7 +283,7 @@ if(BUILD_TESTING)
|
||||||
ADD_TEST_MACRO(CrossCompile CrossCompile)
|
ADD_TEST_MACRO(CrossCompile CrossCompile)
|
||||||
set_tests_properties(CrossCompile PROPERTIES
|
set_tests_properties(CrossCompile PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "TRY_RUN.. invoked in cross-compiling mode")
|
PASS_REGULAR_EXPRESSION "TRY_RUN.. invoked in cross-compiling mode")
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "Make")
|
if("${CMAKE_GENERATOR}" MATCHES "Make")
|
||||||
ADD_TEST_MACRO(Policy0002 Policy0002)
|
ADD_TEST_MACRO(Policy0002 Policy0002)
|
||||||
endif()
|
endif()
|
||||||
if(CTEST_TEST_OSX_ARCH)
|
if(CTEST_TEST_OSX_ARCH)
|
||||||
|
@ -315,7 +322,7 @@ if(BUILD_TESTING)
|
||||||
MINGW OR
|
MINGW OR
|
||||||
CMAKE_SYSTEM_NAME MATCHES "Linux" OR
|
CMAKE_SYSTEM_NAME MATCHES "Linux" OR
|
||||||
CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
if(NOT "${CMAKE_TEST_GENERATOR}" STREQUAL "Watcom WMake")
|
if(NOT "${CMAKE_GENERATOR}" STREQUAL "Watcom WMake")
|
||||||
|
|
||||||
add_test(BundleUtilities ${CMAKE_CTEST_COMMAND}
|
add_test(BundleUtilities ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
|
@ -466,7 +473,7 @@ if(BUILD_TESTING)
|
||||||
# build the "Simple" test with the ExtraGenerators, if available
|
# build the "Simple" test with the ExtraGenerators, if available
|
||||||
# This doesn't test whether the generated project files work (unfortunately),
|
# This doesn't test whether the generated project files work (unfortunately),
|
||||||
# mainly it tests that cmake doesn't crash when generating these project files.
|
# mainly it tests that cmake doesn't crash when generating these project files.
|
||||||
if(${CMAKE_TEST_GENERATOR} MATCHES "Unix Makefiles" OR ${CMAKE_TEST_GENERATOR} MATCHES "KDevelop")
|
if(${CMAKE_GENERATOR} MATCHES "Unix Makefiles" OR ${CMAKE_GENERATOR} MATCHES "KDevelop")
|
||||||
# check which generators we have
|
# check which generators we have
|
||||||
execute_process(COMMAND ${CMAKE_CMAKE_COMMAND} --help
|
execute_process(COMMAND ${CMAKE_CMAKE_COMMAND} --help
|
||||||
OUTPUT_VARIABLE cmakeOutput ERROR_VARIABLE cmakeOutput)
|
OUTPUT_VARIABLE cmakeOutput ERROR_VARIABLE cmakeOutput)
|
||||||
|
@ -478,7 +485,7 @@ if(BUILD_TESTING)
|
||||||
"${CMake_BINARY_DIR}/Tests/Simple_EclipseGenerator"
|
"${CMake_BINARY_DIR}/Tests/Simple_EclipseGenerator"
|
||||||
--build-two-config
|
--build-two-config
|
||||||
--build-generator "Eclipse CDT4 - Unix Makefiles"
|
--build-generator "Eclipse CDT4 - Unix Makefiles"
|
||||||
--build-generator-toolset "${CMAKE_TEST_GENERATOR_TOOLSET}"
|
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
|
||||||
--build-project Simple
|
--build-project Simple
|
||||||
--build-options ${build_options}
|
--build-options ${build_options}
|
||||||
--test-command Simple)
|
--test-command Simple)
|
||||||
|
@ -493,7 +500,7 @@ if(BUILD_TESTING)
|
||||||
"${CMake_BINARY_DIR}/Tests/Simple_CodeBlocksGenerator"
|
"${CMake_BINARY_DIR}/Tests/Simple_CodeBlocksGenerator"
|
||||||
--build-two-config
|
--build-two-config
|
||||||
--build-generator "CodeBlocks - Unix Makefiles"
|
--build-generator "CodeBlocks - Unix Makefiles"
|
||||||
--build-generator-toolset "${CMAKE_TEST_GENERATOR_TOOLSET}"
|
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
|
||||||
--build-project Simple
|
--build-project Simple
|
||||||
--build-options ${build_options}
|
--build-options ${build_options}
|
||||||
--test-command Simple)
|
--test-command Simple)
|
||||||
|
@ -507,7 +514,7 @@ if(BUILD_TESTING)
|
||||||
"${CMake_BINARY_DIR}/Tests/Simple_KDevelop3Generator"
|
"${CMake_BINARY_DIR}/Tests/Simple_KDevelop3Generator"
|
||||||
--build-two-config
|
--build-two-config
|
||||||
--build-generator "KDevelop3 - Unix Makefiles"
|
--build-generator "KDevelop3 - Unix Makefiles"
|
||||||
--build-generator-toolset "${CMAKE_TEST_GENERATOR_TOOLSET}"
|
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
|
||||||
--build-project Simple
|
--build-project Simple
|
||||||
--build-options ${build_options}
|
--build-options ${build_options}
|
||||||
--test-command Simple)
|
--test-command Simple)
|
||||||
|
@ -518,7 +525,7 @@ if(BUILD_TESTING)
|
||||||
|
|
||||||
# test for correct sub-project generation
|
# test for correct sub-project generation
|
||||||
# not implemented in VS 6, VS 7.0, Xcode, or Ninja
|
# not implemented in VS 6, VS 7.0, Xcode, or Ninja
|
||||||
if(NOT CMAKE_TEST_GENERATOR MATCHES "Visual Studio [67]$|Xcode|Ninja")
|
if(NOT CMAKE_GENERATOR MATCHES "Visual Studio [67]$|Xcode|Ninja")
|
||||||
# run cmake and configure all of SubProject
|
# run cmake and configure all of SubProject
|
||||||
# but only build the independent executable car
|
# but only build the independent executable car
|
||||||
add_test(SubProject ${CMAKE_CTEST_COMMAND}
|
add_test(SubProject ${CMAKE_CTEST_COMMAND}
|
||||||
|
@ -537,17 +544,17 @@ if(BUILD_TESTING)
|
||||||
# the bar library which should be referenced because
|
# the bar library which should be referenced because
|
||||||
# foo links to the static library bar, but bar is not
|
# foo links to the static library bar, but bar is not
|
||||||
# directly in the foo sub project
|
# directly in the foo sub project
|
||||||
if(CMAKE_TEST_MAKEPROGRAM)
|
if(CMake_TEST_EXPLICIT_MAKE_PROGRAM)
|
||||||
set(SubProject-Stage2_BUILD_MAKEPROGRAM
|
set(SubProject-Stage2_BUILD_MAKEPROGRAM
|
||||||
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
--build-makeprogram ${CMake_TEST_EXPLICIT_MAKE_PROGRAM}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
add_test(SubProject-Stage2 ${CMAKE_CTEST_COMMAND}
|
add_test(SubProject-Stage2 ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
"${CMake_SOURCE_DIR}/Tests/SubProject/foo"
|
"${CMake_SOURCE_DIR}/Tests/SubProject/foo"
|
||||||
"${CMake_BINARY_DIR}/Tests/SubProject/foo"
|
"${CMake_BINARY_DIR}/Tests/SubProject/foo"
|
||||||
--build-generator ${CMAKE_TEST_GENERATOR}
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
--build-generator-toolset "${CMAKE_TEST_GENERATOR_TOOLSET}"
|
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
|
||||||
${SubProject-Stage2_BUILD_MAKEPROGRAM}
|
${SubProject-Stage2_BUILD_MAKEPROGRAM}
|
||||||
--build-nocmake
|
--build-nocmake
|
||||||
--build-project foo
|
--build-project foo
|
||||||
|
@ -996,7 +1003,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
if(CTEST_RUN_CMakeTestBadCommandLines)
|
if(CTEST_RUN_CMakeTestBadCommandLines)
|
||||||
add_test(CMakeTestBadCommandLines ${CMAKE_CMAKE_COMMAND}
|
add_test(CMakeTestBadCommandLines ${CMAKE_CMAKE_COMMAND}
|
||||||
-D dir=${CMake_BINARY_DIR}/Tests/CMakeTestBadCommandLines
|
-D dir=${CMake_BINARY_DIR}/Tests/CMakeTestBadCommandLines
|
||||||
-D gen=${CMAKE_TEST_GENERATOR}
|
-D gen=${CMAKE_GENERATOR}
|
||||||
-D CMake_SOURCE_DIR=${CMake_SOURCE_DIR}
|
-D CMake_SOURCE_DIR=${CMake_SOURCE_DIR}
|
||||||
-P ${CMake_SOURCE_DIR}/Tests/CMakeTestBadCommandLines/RunCMake.cmake
|
-P ${CMake_SOURCE_DIR}/Tests/CMakeTestBadCommandLines/RunCMake.cmake
|
||||||
)
|
)
|
||||||
|
@ -1011,7 +1018,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
if(CTEST_RUN_CMakeTestMultipleConfigures)
|
if(CTEST_RUN_CMakeTestMultipleConfigures)
|
||||||
add_test(CMakeTestMultipleConfigures ${CMAKE_CMAKE_COMMAND}
|
add_test(CMakeTestMultipleConfigures ${CMAKE_CMAKE_COMMAND}
|
||||||
-D dir=${CMake_BINARY_DIR}/Tests/CMakeTestMultipleConfigures
|
-D dir=${CMake_BINARY_DIR}/Tests/CMakeTestMultipleConfigures
|
||||||
-D gen=${CMAKE_TEST_GENERATOR}
|
-D gen=${CMAKE_GENERATOR}
|
||||||
-D CMake_SOURCE_DIR=${CMake_SOURCE_DIR}
|
-D CMake_SOURCE_DIR=${CMake_SOURCE_DIR}
|
||||||
-P ${CMake_SOURCE_DIR}/Tests/CMakeTestMultipleConfigures/RunCMake.cmake
|
-P ${CMake_SOURCE_DIR}/Tests/CMakeTestMultipleConfigures/RunCMake.cmake
|
||||||
)
|
)
|
||||||
|
@ -1019,16 +1026,18 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
"${CMake_BINARY_DIR}/Tests/CMakeTestMultipleConfigures")
|
"${CMake_BINARY_DIR}/Tests/CMakeTestMultipleConfigures")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_test(LoadedCommandOneConfig ${CMAKE_CTEST_COMMAND}
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
--build-and-test
|
add_test(LoadedCommandOneConfig ${CMAKE_CTEST_COMMAND}
|
||||||
"${CMake_SOURCE_DIR}/Tests/LoadCommandOneConfig"
|
--build-and-test
|
||||||
"${CMake_BINARY_DIR}/Tests/LoadCommandOneConfig"
|
"${CMake_SOURCE_DIR}/Tests/LoadCommandOneConfig"
|
||||||
${build_generator_args}
|
"${CMake_BINARY_DIR}/Tests/LoadCommandOneConfig"
|
||||||
--build-project LoadCommand
|
${build_generator_args}
|
||||||
--build-options ${build_options}
|
--build-project LoadCommand
|
||||||
--test-command LoadedCommand
|
--build-options ${build_options}
|
||||||
)
|
--test-command LoadedCommand
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/LoadCommandOneConfig")
|
)
|
||||||
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/LoadCommandOneConfig")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_test(complex ${CMAKE_CTEST_COMMAND}
|
add_test(complex ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
|
@ -1234,8 +1243,8 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
COMMAND ${CMAKE_CMAKE_COMMAND}
|
COMMAND ${CMAKE_CMAKE_COMMAND}
|
||||||
-DExternalProjectUpdate_SOURCE_DIR:PATH=${CMake_SOURCE_DIR}/Tests/ExternalProjectUpdate
|
-DExternalProjectUpdate_SOURCE_DIR:PATH=${CMake_SOURCE_DIR}/Tests/ExternalProjectUpdate
|
||||||
-DExternalProjectUpdate_BINARY_DIR:PATH=${CMake_BINARY_DIR}/Tests/ExternalProjectUpdate
|
-DExternalProjectUpdate_BINARY_DIR:PATH=${CMake_BINARY_DIR}/Tests/ExternalProjectUpdate
|
||||||
-DCMAKE_TEST_GENERATOR=${CMAKE_TEST_GENERATOR}
|
-DCMAKE_GENERATOR=${CMAKE_GENERATOR}
|
||||||
-DCMAKE_TEST_GENERATOR_TOOLSET=${CMAKE_TEST_GENERATOR_TOOLSET}
|
-DCMAKE_GENERATOR_TOOLSET=${CMAKE_GENERATOR_TOOLSET}
|
||||||
-DCMAKE_CTEST_COMMAND=${CMAKE_CTEST_COMMAND}
|
-DCMAKE_CTEST_COMMAND=${CMAKE_CTEST_COMMAND}
|
||||||
-P ${CMake_SOURCE_DIR}/Tests/ExternalProjectUpdate/ExternalProjectUpdateTest.cmake
|
-P ${CMake_SOURCE_DIR}/Tests/ExternalProjectUpdate/ExternalProjectUpdateTest.cmake
|
||||||
)
|
)
|
||||||
|
@ -1406,7 +1415,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
${build_generator_args}
|
${build_generator_args}
|
||||||
--build-project MacRuntimePath
|
--build-project MacRuntimePath
|
||||||
--build-options ${build_options}
|
--build-options ${build_options}
|
||||||
-DCMAKE_TEST_MAKEPROGRAM:FILEPATH=${CMAKE_TEST_MAKEPROGRAM}
|
-DCMake_TEST_NESTED_MAKE_PROGRAM:FILEPATH=${CMake_TEST_EXPLICIT_MAKE_PROGRAM}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1453,19 +1462,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
|
||||||
add_test(kwsys ${CMAKE_CTEST_COMMAND}
|
|
||||||
--build-and-test
|
|
||||||
"${CMake_SOURCE_DIR}/Source/kwsys"
|
|
||||||
"${CMake_BINARY_DIR}/Tests/kwsys"
|
|
||||||
${build_generator_args}
|
|
||||||
--build-project kwsys
|
|
||||||
--build-options ${build_options}
|
|
||||||
--test-command kwsysTestsCxx testIOS
|
|
||||||
)
|
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/kwsys")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(MAKE_SUPPORTS_SPACES)
|
if(MAKE_SUPPORTS_SPACES)
|
||||||
add_test(SubDirSpaces ${CMAKE_CTEST_COMMAND}
|
add_test(SubDirSpaces ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
|
@ -1512,19 +1508,19 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
endif ()
|
endif ()
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/SubDir")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/SubDir")
|
||||||
|
|
||||||
if(CMAKE_TEST_MSVC)
|
if(MSVC)
|
||||||
ADD_TEST_MACRO(ForceInclude foo)
|
ADD_TEST_MACRO(ForceInclude foo)
|
||||||
ADD_TEST_MACRO(PDBDirectoryAndName myexe)
|
ADD_TEST_MACRO(PDBDirectoryAndName myexe)
|
||||||
ADD_TEST_MACRO(PrecompiledHeader foo)
|
ADD_TEST_MACRO(PrecompiledHeader foo)
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_TEST_MSVC OR
|
if(MSVC OR
|
||||||
"${CMAKE_TEST_GENERATOR}" MATCHES "(MSYS|MinGW) Makefiles")
|
"${CMAKE_GENERATOR}" MATCHES "(MSYS|MinGW) Makefiles")
|
||||||
ADD_TEST_MACRO(ModuleDefinition example_exe)
|
ADD_TEST_MACRO(ModuleDefinition example_exe)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ADD_TEST_MACRO(CheckCompilerRelatedVariables CheckCompilerRelatedVariables)
|
ADD_TEST_MACRO(CheckCompilerRelatedVariables CheckCompilerRelatedVariables)
|
||||||
|
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "Makefile")
|
if("${CMAKE_GENERATOR}" MATCHES "Makefile")
|
||||||
add_test(MakeClean ${CMAKE_CTEST_COMMAND}
|
add_test(MakeClean ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
"${CMake_SOURCE_DIR}/Tests/MakeClean"
|
"${CMake_SOURCE_DIR}/Tests/MakeClean"
|
||||||
|
@ -1546,10 +1542,10 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
|
|
||||||
# Look for evidence that this is a VCExpress build. If so, avoid
|
# Look for evidence that this is a VCExpress build. If so, avoid
|
||||||
# the MFC test by default.
|
# the MFC test by default.
|
||||||
string(TOLOWER "${CMAKE_MAKE_PROGRAM};${CMAKE_TEST_MAKEPROGRAM}" mkprog)
|
string(TOLOWER "${CMAKE_MAKE_PROGRAM}" mkprog)
|
||||||
if(mkprog MATCHES "vcexpress")
|
if(mkprog MATCHES "vcexpress")
|
||||||
message(STATUS
|
message(STATUS
|
||||||
"CMAKE_TEST_MAKEPROGRAM indicates vcexpress, avoiding MFC test")
|
"CMAKE_MAKE_PROGRAM indicates vcexpress, avoiding MFC test")
|
||||||
set(CTEST_RUN_MFC OFF)
|
set(CTEST_RUN_MFC OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1570,7 +1566,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
|
|
||||||
# For the Watcom WMake generator, avoid the MFC test by default.
|
# For the Watcom WMake generator, avoid the MFC test by default.
|
||||||
if(CTEST_RUN_MFC)
|
if(CTEST_RUN_MFC)
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "WMake")
|
if("${CMAKE_GENERATOR}" MATCHES "WMake")
|
||||||
message(STATUS
|
message(STATUS
|
||||||
"using the Watcom WMake generator, avoiding MFC test")
|
"using the Watcom WMake generator, avoiding MFC test")
|
||||||
set(CTEST_RUN_MFC OFF)
|
set(CTEST_RUN_MFC OFF)
|
||||||
|
@ -1643,13 +1639,13 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/MFC")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/MFC")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_TEST_GENERATOR} MATCHES "Visual Studio")
|
if(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||||
if(NOT MSVC60)
|
if(NOT MSVC60)
|
||||||
ADD_TEST_MACRO(SBCS SBCS)
|
ADD_TEST_MACRO(SBCS SBCS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT "${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio [6789]( |$)"
|
if(NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio [6789]( |$)"
|
||||||
AND NOT CMAKE_TEST_GENERATOR_TOOLSET)
|
AND NOT CMAKE_GENERATOR_TOOLSET)
|
||||||
ADD_TEST_MACRO(VSWindowsFormsResx VSWindowsFormsResx)
|
ADD_TEST_MACRO(VSWindowsFormsResx VSWindowsFormsResx)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1675,7 +1671,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
--test-command VSMidl)
|
--test-command VSMidl)
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/VSMidl")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/VSMidl")
|
||||||
|
|
||||||
if(CMAKE_TEST_DEVENV)
|
if(CMake_TEST_DEVENV)
|
||||||
# The test (and tested property) works with .sln files, so it's skipped when:
|
# The test (and tested property) works with .sln files, so it's skipped when:
|
||||||
# * Using VS6, which doesn't use .sln files
|
# * Using VS6, which doesn't use .sln files
|
||||||
# * cmake --build is set up to use MSBuild, since the MSBuild invocation does not use the .sln file
|
# * cmake --build is set up to use MSBuild, since the MSBuild invocation does not use the .sln file
|
||||||
|
@ -1687,9 +1683,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
"${CMake_BINARY_DIR}/Tests/VSExcludeFromDefaultBuild"
|
"${CMake_BINARY_DIR}/Tests/VSExcludeFromDefaultBuild"
|
||||||
--build-config ${config}
|
--build-config ${config}
|
||||||
--build-two-config
|
--build-two-config
|
||||||
--build-generator ${CMAKE_TEST_GENERATOR}
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
--build-makeprogram ${CMAKE_TEST_DEVENV}
|
--build-makeprogram ${CMake_TEST_DEVENV}
|
||||||
--build-generator-toolset "${CMAKE_TEST_GENERATOR_TOOLSET}"
|
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
|
||||||
--build-project VSExcludeFromDefaultBuild
|
--build-project VSExcludeFromDefaultBuild
|
||||||
--test-command ${CMAKE_COMMAND}
|
--test-command ${CMAKE_COMMAND}
|
||||||
-D "activeConfig=${config}"
|
-D "activeConfig=${config}"
|
||||||
|
@ -1705,15 +1701,15 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/VSExcludeFromDefaultBuild")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/VSExcludeFromDefaultBuild")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_TEST_GENERATOR MATCHES "Visual Studio ([0-5]|[6-9][0-9])")
|
if(CMAKE_GENERATOR MATCHES "Visual Studio ([0-5]|[6-9][0-9])")
|
||||||
# This is Visual Studio 10 or above, so the default build tool is MSBuild.
|
# This is Visual Studio 10 or above, so the default build tool is MSBuild.
|
||||||
add_test(NAME VSProjectInSubdir COMMAND ${CMAKE_CTEST_COMMAND}
|
add_test(NAME VSProjectInSubdir COMMAND ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
"${CMake_SOURCE_DIR}/Tests/VSProjectInSubdir"
|
"${CMake_SOURCE_DIR}/Tests/VSProjectInSubdir"
|
||||||
"${CMake_BINARY_DIR}/Tests/VSProjectInSubdir"
|
"${CMake_BINARY_DIR}/Tests/VSProjectInSubdir"
|
||||||
--build-two-config
|
--build-two-config
|
||||||
--build-generator ${CMAKE_TEST_GENERATOR}
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
--build-generator-toolset "${CMAKE_TEST_GENERATOR_TOOLSET}"
|
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
|
||||||
--build-project VSProjectInSubdir
|
--build-project VSProjectInSubdir
|
||||||
--build-target test)
|
--build-target test)
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/VSProjectInSubdir")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/VSProjectInSubdir")
|
||||||
|
@ -1751,7 +1747,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
--test-command
|
--test-command
|
||||||
${CMAKE_CMAKE_COMMAND} -DCTEST_CONFIGURATION_TYPE=\${CTEST_CONFIGURATION_TYPE}
|
${CMAKE_CMAKE_COMMAND} -DCTEST_CONFIGURATION_TYPE=\${CTEST_CONFIGURATION_TYPE}
|
||||||
-Ddir=${CMake_BINARY_DIR}/Tests/CFBundleTest
|
-Ddir=${CMake_BINARY_DIR}/Tests/CFBundleTest
|
||||||
-Dgen=${CMAKE_TEST_GENERATOR}
|
-Dgen=${CMAKE_GENERATOR}
|
||||||
-P ${CMake_SOURCE_DIR}/Tests/CFBundleTest/VerifyResult.cmake)
|
-P ${CMake_SOURCE_DIR}/Tests/CFBundleTest/VerifyResult.cmake)
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/CFBundleTest")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/CFBundleTest")
|
||||||
|
|
||||||
|
@ -1804,7 +1800,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
FAIL_REGULAR_EXPRESSION "CMake Warning .*VariableUnusedViaUnset.CMakeLists.txt:5 \\(set\\):")
|
FAIL_REGULAR_EXPRESSION "CMake Warning .*VariableUnusedViaUnset.CMakeLists.txt:5 \\(set\\):")
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/WarnUnusedUnusedViaUnset")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/WarnUnusedUnusedViaUnset")
|
||||||
|
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "Makefile" AND NOT WIN32)
|
if("${CMAKE_GENERATOR}" MATCHES "Makefile" AND NOT WIN32)
|
||||||
# Ninja does not support ADDITIONAL_MAKE_CLEAN_FILES and therefore fails
|
# Ninja does not support ADDITIONAL_MAKE_CLEAN_FILES and therefore fails
|
||||||
# this test. (See #13371)
|
# this test. (See #13371)
|
||||||
# Apparently Visual Studio does not support it either. As the MakeClean
|
# Apparently Visual Studio does not support it either. As the MakeClean
|
||||||
|
@ -1877,11 +1873,11 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
|
|
||||||
# A test for ctest_build() with targets in subdirectories
|
# A test for ctest_build() with targets in subdirectories
|
||||||
set(ctest_configure_options)
|
set(ctest_configure_options)
|
||||||
if(CMAKE_TEST_GENERATOR_TOOLSET)
|
if(CMAKE_GENERATOR_TOOLSET)
|
||||||
list(APPEND ctest_configure_options -T ${CMAKE_TEST_GENERATOR_TOOLSET})
|
list(APPEND ctest_configure_options -T ${CMAKE_GENERATOR_TOOLSET})
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_TEST_MAKEPROGRAM)
|
if(CMake_TEST_EXPLICIT_MAKE_PROGRAM)
|
||||||
list(APPEND ctest_configure_options -DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_TEST_MAKEPROGRAM})
|
list(APPEND ctest_configure_options -DCMAKE_MAKE_PROGRAM:FILEPATH=${CMake_TEST_EXPLICIT_MAKE_PROGRAM})
|
||||||
endif()
|
endif()
|
||||||
configure_file("${CMake_SOURCE_DIR}/Tests/CTestBuildCommandProjectInSubdir/CTestBuildCommandProjectInSubdir.cmake.in"
|
configure_file("${CMake_SOURCE_DIR}/Tests/CTestBuildCommandProjectInSubdir/CTestBuildCommandProjectInSubdir.cmake.in"
|
||||||
"${CMake_BINARY_DIR}/Tests/CTestBuildCommandProjectInSubdir/CTestBuildCommandProjectInSubdir.cmake" @ONLY)
|
"${CMake_BINARY_DIR}/Tests/CTestBuildCommandProjectInSubdir/CTestBuildCommandProjectInSubdir.cmake" @ONLY)
|
||||||
|
@ -2220,7 +2216,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
--output-log "${CMake_BINARY_DIR}/Tests/CTestTestCrash/testOutput.log"
|
--output-log "${CMake_BINARY_DIR}/Tests/CTestTestCrash/testOutput.log"
|
||||||
)
|
)
|
||||||
# with watcom the SEGFAULT is not found, it just fails
|
# with watcom the SEGFAULT is not found, it just fails
|
||||||
if(CMAKE_TEST_GENERATOR MATCHES "Watcom WMake")
|
if(CMAKE_GENERATOR MATCHES "Watcom WMake")
|
||||||
set_tests_properties(CTestTestCrash PROPERTIES
|
set_tests_properties(CTestTestCrash PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "Failed")
|
PASS_REGULAR_EXPRESSION "Failed")
|
||||||
else()
|
else()
|
||||||
|
@ -2499,7 +2495,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest2/testOutput.log"
|
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest2/testOutput.log"
|
||||||
)
|
)
|
||||||
|
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "Makefiles" OR "${CMAKE_TEST_GENERATOR}" MATCHES "Ninja")
|
if("${CMAKE_GENERATOR}" MATCHES "Makefiles" OR "${CMAKE_GENERATOR}" MATCHES "Ninja")
|
||||||
configure_file("${CMake_SOURCE_DIR}/Tests/CTestTestLaunchers/test.cmake.in"
|
configure_file("${CMake_SOURCE_DIR}/Tests/CTestTestLaunchers/test.cmake.in"
|
||||||
"${CMake_BINARY_DIR}/Tests/CTestTestLaunchers/test.cmake" @ONLY ESCAPE_QUOTES)
|
"${CMake_BINARY_DIR}/Tests/CTestTestLaunchers/test.cmake" @ONLY ESCAPE_QUOTES)
|
||||||
add_test(CTestTestLaunchers ${CMAKE_CTEST_COMMAND}
|
add_test(CTestTestLaunchers ${CMAKE_CTEST_COMMAND}
|
||||||
|
@ -2536,7 +2532,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES Xcode)
|
if("${CMAKE_GENERATOR}" MATCHES Xcode)
|
||||||
set(CMAKE_SKIP_BOOTSTRAP_TEST 1)
|
set(CMAKE_SKIP_BOOTSTRAP_TEST 1)
|
||||||
endif()
|
endif()
|
||||||
if(EXISTS "${CMake_BINARY_DIR}/CMakeLists.txt")
|
if(EXISTS "${CMake_BINARY_DIR}/CMakeLists.txt")
|
||||||
|
@ -2581,7 +2577,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
--build-project testf
|
--build-project testf
|
||||||
--build-two-config
|
--build-two-config
|
||||||
--build-options ${build_options}
|
--build-options ${build_options}
|
||||||
-DCMAKE_TEST_MAKEPROGRAM:FILEPATH=${CMAKE_TEST_MAKEPROGRAM}
|
-DCMake_TEST_NESTED_MAKE_PROGRAM:FILEPATH=${CMake_TEST_EXPLICIT_MAKE_PROGRAM}
|
||||||
--test-command testf)
|
--test-command testf)
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Fortran")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Fortran")
|
||||||
|
|
||||||
|
@ -2608,7 +2604,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
|
|
||||||
find_package(Java COMPONENTS Development QUIET)
|
find_package(Java COMPONENTS Development QUIET)
|
||||||
if(Java_JAVA_EXECUTABLE AND Java_JAVAC_EXECUTABLE AND Java_JAR_EXECUTABLE AND NOT MINGW
|
if(Java_JAVA_EXECUTABLE AND Java_JAVAC_EXECUTABLE AND Java_JAR_EXECUTABLE AND NOT MINGW
|
||||||
AND NOT "${CMAKE_TEST_GENERATOR}" MATCHES "Xcode")
|
AND NOT "${CMAKE_GENERATOR}" MATCHES "Xcode")
|
||||||
get_filename_component(JNIPATH ${JAVA_COMPILE} PATH)
|
get_filename_component(JNIPATH ${JAVA_COMPILE} PATH)
|
||||||
find_file(JNI_H jni.h
|
find_file(JNI_H jni.h
|
||||||
"${JNIPATH}/../include"
|
"${JNIPATH}/../include"
|
||||||
|
@ -2632,7 +2628,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# add some cross compiler tests, for now only with makefile based generators
|
# add some cross compiler tests, for now only with makefile based generators
|
||||||
if(CMAKE_TEST_GENERATOR MATCHES "Makefiles" OR CMAKE_TEST_GENERATOR MATCHES "KDevelop")
|
if(CMAKE_GENERATOR MATCHES "Makefiles" OR CMAKE_GENERATOR MATCHES "KDevelop")
|
||||||
|
|
||||||
# if sdcc is found, build the SimpleCOnly project with sdcc
|
# if sdcc is found, build the SimpleCOnly project with sdcc
|
||||||
find_program(SDCC_EXECUTABLE sdcc)
|
find_program(SDCC_EXECUTABLE sdcc)
|
||||||
|
@ -2785,5 +2781,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
WORKING_DIRECTORY ${CMake_BINARY_DIR}/Utilities/KWStyle)
|
WORKING_DIRECTORY ${CMake_BINARY_DIR}/Utilities/KWStyle)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(CMakeTests)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
|
add_subdirectory(CMakeTests)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -8,8 +8,8 @@ file(REMOVE_RECURSE "${binary_dir}")
|
||||||
file(MAKE_DIRECTORY "${binary_dir}")
|
file(MAKE_DIRECTORY "${binary_dir}")
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${CMAKE_COMMAND} ${CMAKE_ARGS}
|
COMMAND ${CMAKE_COMMAND} ${CMAKE_ARGS}
|
||||||
"${source_dir}" -G "@CMAKE_TEST_GENERATOR@"
|
"${source_dir}" -G "@CMAKE_GENERATOR@"
|
||||||
-T "@CMAKE_TEST_GENERATOR_TOOLSET@"
|
-T "@CMAKE_GENERATOR_TOOLSET@"
|
||||||
WORKING_DIRECTORY "${binary_dir}"
|
WORKING_DIRECTORY "${binary_dir}"
|
||||||
RESULT_VARIABLE result
|
RESULT_VARIABLE result
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.10)
|
||||||
|
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/VSProjectInSubdir")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/VSProjectInSubdir")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestBuildCommandProjectInSubdir/Nested")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestBuildCommandProjectInSubdir/Nested")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_PROJECT_NAME "VSProjectInSubdir")
|
set(CTEST_PROJECT_NAME "VSProjectInSubdir")
|
||||||
set(CTEST_BUILD_CONFIGURATION "@CTestTest_CONFIG@")
|
set(CTEST_BUILD_CONFIGURATION "@CTestTest_CONFIG@")
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ endif()
|
||||||
message("cmake initial configure")
|
message("cmake initial configure")
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND}
|
execute_process(COMMAND ${CMAKE_COMMAND}
|
||||||
${arg}
|
${arg}
|
||||||
-G "@CMAKE_TEST_GENERATOR@"
|
-G "@CMAKE_GENERATOR@"
|
||||||
-T "@CMAKE_TEST_GENERATOR_TOOLSET@"
|
-T "@CMAKE_GENERATOR_TOOLSET@"
|
||||||
${CTEST_SOURCE_DIRECTORY}
|
${CTEST_SOURCE_DIRECTORY}
|
||||||
WORKING_DIRECTORY ${CTEST_BINARY_DIRECTORY}
|
WORKING_DIRECTORY ${CTEST_BINARY_DIRECTORY}
|
||||||
RESULT_VARIABLE rv)
|
RESULT_VARIABLE rv)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_PROJECT_NAME "CTestConfig")
|
set(CTEST_PROJECT_NAME "CTestConfig")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestConfig")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestConfig")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestConfig/@cfg@-script")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestConfig/@cfg@-script")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-BadExe")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestBadExe")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestBadExe")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestBadExe")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestBadExe")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Checksum")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestParallel")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestParallel")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestParallel")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestParallel")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-ConfigFileInBuild
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestConfigFileInBuildDir")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestConfigFileInBuildDir")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestConfigFileInBuildDir1")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestConfigFileInBuildDir1")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-ConfigFileInBuild
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestConfigFileInBuildDir")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestConfigFileInBuildDir")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestConfigFileInBuildDir2")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestConfigFileInBuildDir2")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-CostSerial")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestCostSerial")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestCostSerial")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestCostSerial")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestCostSerial")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Crash")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestCrash")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestCrash")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestCrash")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestCrash")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Cycle")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestCycle")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestCycle")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestCycle")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestCycle")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Depends")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestDepends")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestDepends")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestDepends")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestDepends")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-NoBuild")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestFailure")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestFailure")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestFailure")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestFailure")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-NoExe")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestFailure")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestFailure")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestFailure")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestFailure")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-FdSetSize")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestFdSetSize")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestFdSetSize")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestFdSetSize")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestFdSetSize")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Memcheck@SUBTEST_
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@/@SUBTEST_NAME@")
|
set(CTEST_SOURCE_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@/@SUBTEST_NAME@")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@/@SUBTEST_NAME@")
|
set(CTEST_BINARY_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@/@SUBTEST_NAME@")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Parallel")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestParallel")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestParallel")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestParallel")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestParallel")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-ResourceLock")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestResourceLock")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestResourceLock")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestResourceLock")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestResourceLock")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Scheduler")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestScheduler")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestScheduler")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestScheduler")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestScheduler")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-SkipReturnCode")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestSkipReturnCode")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestSkipReturnCode")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestSkipReturnCode")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestSkipReturnCode")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-StopTime")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestStopTime")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestStopTime")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestStopTime")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestStopTime")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Subdir")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestSubdir")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestSubdir")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestSubdir")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestSubdir")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Timeout")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestTimeout")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestTimeout")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestTimeout")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestTimeout")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -7,8 +7,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Upload")
|
||||||
|
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestUpload")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestUpload")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestUpload")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestUpload")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
|
|
||||||
CTEST_START(Experimental)
|
CTEST_START(Experimental)
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-ZeroTimeout")
|
||||||
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestZeroTimeout")
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestZeroTimeout")
|
||||||
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestZeroTimeout")
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestZeroTimeout")
|
||||||
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
set(CTEST_CVS_COMMAND "@CVSCOMMAND@")
|
||||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
||||||
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
||||||
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
|
||||||
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required (VERSION 2.7.20090711)
|
cmake_minimum_required (VERSION 2.7.20090711)
|
||||||
project(ExportImport C CXX)
|
project(ExportImport C CXX)
|
||||||
if(NOT DEFINED CMAKE_TEST_MAKEPROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
|
if(NOT DEFINED CMake_TEST_NESTED_MAKE_PROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
set(CMAKE_TEST_MAKEPROGRAM "${CMAKE_MAKE_PROGRAM}")
|
set(CMake_TEST_NESTED_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Wipe out the install tree to make sure the exporter works.
|
# Wipe out the install tree to make sure the exporter works.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
set(CMAKE_MAKE_PROGRAM "@CMAKE_TEST_MAKEPROGRAM@" CACHE FILEPATH "Make Program")
|
set(CMAKE_MAKE_PROGRAM "@CMake_TEST_NESTED_MAKE_PROGRAM@" CACHE FILEPATH "Make Program")
|
||||||
set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@" CACHE STRING "C Compiler")
|
set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@" CACHE STRING "C Compiler")
|
||||||
set(CMAKE_C_FLAGS "@CMAKE_C_FLAGS@" CACHE STRING "C Flags")
|
set(CMAKE_C_FLAGS "@CMAKE_C_FLAGS@" CACHE STRING "C Flags")
|
||||||
set(CMAKE_C_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@" CACHE STRING "C Flags")
|
set(CMAKE_C_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@" CACHE STRING "C Flags")
|
||||||
|
|
|
@ -12,7 +12,7 @@ macro(check_a_tag desired_tag resulting_sha fetch_expected)
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND}
|
execute_process(COMMAND ${CMAKE_COMMAND}
|
||||||
-G ${CMAKE_TEST_GENERATOR} -T "${CMAKE_TEST_GENERATOR_TOOLSET}"
|
-G ${CMAKE_GENERATOR} -T "${CMAKE_GENERATOR_TOOLSET}"
|
||||||
-DTEST_GIT_TAG:STRING=${desired_tag}
|
-DTEST_GIT_TAG:STRING=${desired_tag}
|
||||||
${ExternalProjectUpdate_SOURCE_DIR}
|
${ExternalProjectUpdate_SOURCE_DIR}
|
||||||
WORKING_DIRECTORY ${ExternalProjectUpdate_BINARY_DIR}
|
WORKING_DIRECTORY ${ExternalProjectUpdate_BINARY_DIR}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required (VERSION 2.6)
|
cmake_minimum_required (VERSION 2.6)
|
||||||
project(testf C CXX Fortran)
|
project(testf C CXX Fortran)
|
||||||
if(NOT DEFINED CMAKE_TEST_MAKEPROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
|
if(NOT DEFINED CMake_TEST_NESTED_MAKE_PROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
set(CMAKE_TEST_MAKEPROGRAM "${CMAKE_MAKE_PROGRAM}")
|
set(CMake_TEST_NESTED_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message("CTEST_FULL_OUTPUT ")
|
message("CTEST_FULL_OUTPUT ")
|
||||||
|
@ -208,7 +208,7 @@ if(TEST_MODULE_DEPENDS)
|
||||||
-DCMAKE_Fortran_FLAGS_RELEASE:STRING=${CMAKE_Fortran_FLAGS_RELEASE}
|
-DCMAKE_Fortran_FLAGS_RELEASE:STRING=${CMAKE_Fortran_FLAGS_RELEASE}
|
||||||
-DCMAKE_Fortran_FLAGS_MINSIZEREL:STRING=${CMAKE_Fortran_FLAGS_MINSIZEREL}
|
-DCMAKE_Fortran_FLAGS_MINSIZEREL:STRING=${CMAKE_Fortran_FLAGS_MINSIZEREL}
|
||||||
-DCMAKE_Fortran_FLAGS_RELWITHDEBINFO:STRING=${CMAKE_Fortran_FLAGS_RELWITHDEBINFO}
|
-DCMAKE_Fortran_FLAGS_RELWITHDEBINFO:STRING=${CMAKE_Fortran_FLAGS_RELWITHDEBINFO}
|
||||||
-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_TEST_MAKEPROGRAM}
|
-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMake_TEST_NESTED_MAKE_PROGRAM}
|
||||||
${External_BUILD_TYPE}
|
${External_BUILD_TYPE}
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
|
|
|
@ -14,8 +14,8 @@ set(COMMAND)
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
WORKING_DIRECTORY "${bld}"
|
WORKING_DIRECTORY "${bld}"
|
||||||
COMMAND ${CMAKE_COMMAND} "${src}" -G "@CMAKE_TEST_GENERATOR@"
|
COMMAND ${CMAKE_COMMAND} "${src}" -G "@CMAKE_GENERATOR@"
|
||||||
-T "@CMAKE_TEST_GENERATOR_TOOLSET@"
|
-T "@CMAKE_GENERATOR_TOOLSET@"
|
||||||
"-DFortranC_TEST_FLAGS=1"
|
"-DFortranC_TEST_FLAGS=1"
|
||||||
"-DCMAKE_C_COMPILER=${bld}/cc.sh"
|
"-DCMAKE_C_COMPILER=${bld}/cc.sh"
|
||||||
"-DCMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@"
|
"-DCMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required (VERSION 2.8)
|
cmake_minimum_required (VERSION 2.8)
|
||||||
project(MacRuntimePath)
|
project(MacRuntimePath)
|
||||||
if(NOT DEFINED CMAKE_TEST_MAKEPROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
|
if(NOT DEFINED CMake_TEST_NESTED_MAKE_PROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
set(CMAKE_TEST_MAKEPROGRAM "${CMAKE_MAKE_PROGRAM}")
|
set(CMake_TEST_NESTED_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Wipe out the install tree to make sure the exporter works.
|
# Wipe out the install tree to make sure the exporter works.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
set(CMAKE_MAKE_PROGRAM "@CMAKE_TEST_MAKEPROGRAM@" CACHE FILEPATH "Make Program")
|
set(CMAKE_MAKE_PROGRAM "@CMake_TEST_NESTED_MAKE_PROGRAM@" CACHE FILEPATH "Make Program")
|
||||||
set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@" CACHE STRING "C Compiler")
|
set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@" CACHE STRING "C Compiler")
|
||||||
set(CMAKE_C_FLAGS "@CMAKE_C_FLAGS@" CACHE STRING "C Flags")
|
set(CMAKE_C_FLAGS "@CMAKE_C_FLAGS@" CACHE STRING "C Flags")
|
||||||
set(CMAKE_C_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@" CACHE STRING "C Flags")
|
set(CMAKE_C_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@" CACHE STRING "C Flags")
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
macro(add_RunCMake_test test)
|
macro(add_RunCMake_test test)
|
||||||
add_test(RunCMake.${test} ${CMAKE_CMAKE_COMMAND}
|
add_test(RunCMake.${test} ${CMAKE_CMAKE_COMMAND}
|
||||||
-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR}
|
-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
-DRunCMake_GENERATOR=${CMAKE_TEST_GENERATOR}
|
-DRunCMake_GENERATOR=${CMAKE_GENERATOR}
|
||||||
-DRunCMake_GENERATOR_TOOLSET=${CMAKE_TEST_GENERATOR_TOOLSET}
|
-DRunCMake_GENERATOR_TOOLSET=${CMAKE_GENERATOR_TOOLSET}
|
||||||
-DRunCMake_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}/${test}
|
-DRunCMake_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}/${test}
|
||||||
-DRunCMake_BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR}/${test}
|
-DRunCMake_BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR}/${test}
|
||||||
${${test}_ARGS}
|
${${test}_ARGS}
|
||||||
|
@ -35,7 +35,7 @@ add_RunCMake_test(CMP0046)
|
||||||
add_RunCMake_test(CMP0049)
|
add_RunCMake_test(CMP0049)
|
||||||
add_RunCMake_test(CMP0050)
|
add_RunCMake_test(CMP0050)
|
||||||
add_RunCMake_test(CTest)
|
add_RunCMake_test(CTest)
|
||||||
if(UNIX AND "${CMAKE_TEST_GENERATOR}" MATCHES "Unix Makefiles")
|
if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Unix Makefiles")
|
||||||
add_RunCMake_test(CompilerChange)
|
add_RunCMake_test(CompilerChange)
|
||||||
endif()
|
endif()
|
||||||
add_RunCMake_test(CompilerNotFound)
|
add_RunCMake_test(CompilerNotFound)
|
||||||
|
@ -106,7 +106,7 @@ if (QT4_FOUND)
|
||||||
add_RunCMake_test(ObsoleteQtMacros)
|
add_RunCMake_test(ObsoleteQtMacros)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio [^6]")
|
if("${CMAKE_GENERATOR}" MATCHES "Visual Studio [^6]")
|
||||||
add_RunCMake_test(include_external_msproject)
|
add_RunCMake_test(include_external_msproject)
|
||||||
add_RunCMake_test(SolutionGlobalSections)
|
add_RunCMake_test(SolutionGlobalSections)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue