Merge branch 'master' into sublime-text-2-generator
This commit is contained in:
commit
44c2eee896
|
@ -31,6 +31,7 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
|
||||||
"remark: .*LOOP WAS VECTORIZED"
|
"remark: .*LOOP WAS VECTORIZED"
|
||||||
"warning .980: wrong number of actual arguments to intrinsic function .std::basic_"
|
"warning .980: wrong number of actual arguments to intrinsic function .std::basic_"
|
||||||
"LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by /OPT:REF"
|
"LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by /OPT:REF"
|
||||||
|
"LINK : warning LNK4089: all references to.*PSAPI.DLL.*discarded by /OPT:REF"
|
||||||
"LINK : warning LNK4089: all references to.*USER32.dll.*discarded by /OPT:REF"
|
"LINK : warning LNK4089: all references to.*USER32.dll.*discarded by /OPT:REF"
|
||||||
"Warning: library was too large for page size.*"
|
"Warning: library was too large for page size.*"
|
||||||
"Warning: public.*_archive_.*in module.*archive_*clashes with prior module.*archive_.*"
|
"Warning: public.*_archive_.*in module.*archive_*clashes with prior module.*archive_.*"
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
Changes in CMake 2.8.10.1 (since 2.8.10)
|
||||||
|
----------------------------------------------
|
||||||
|
Brad King (5):
|
||||||
|
Fix default PDB output directory (#13644)
|
||||||
|
Fix PathScale compiler id for Clang-based upstream
|
||||||
|
Update programmatically-reported copyright year (#13638)
|
||||||
|
FindSDL: Restore accidentally dropped search paths (#13651)
|
||||||
|
OS X: Fix default CMAKE_OSX_SYSROOT with deployment target
|
||||||
|
|
||||||
|
Rolf Eike Beer (2):
|
||||||
|
FindOpenSSL: fix library selection on Windows (#13645)
|
||||||
|
FindOpenSSL: also find the non-MD debug libraries for MSVC
|
||||||
|
|
||||||
|
Stephen Kelly (1):
|
||||||
|
GenEx: Use case insensitive comparison for $<CONFIG:...>
|
||||||
|
|
||||||
Changes in CMake 2.8.10 (since 2.8.10-rc3)
|
Changes in CMake 2.8.10 (since 2.8.10-rc3)
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
None
|
None
|
||||||
|
|
|
@ -369,7 +369,7 @@ function(set_bundle_key_values keys_var context item exepath dirs copyflag)
|
||||||
# For frameworks, construct the name under the embedded path from the
|
# For frameworks, construct the name under the embedded path from the
|
||||||
# opening "${item_name}.framework/" to the closing "/${item_name}":
|
# opening "${item_name}.framework/" to the closing "/${item_name}":
|
||||||
#
|
#
|
||||||
string(REGEX REPLACE "^.*(${item_name}.framework/.*/${item_name}).*$" "${default_embedded_path}/\\1" embedded_item "${item}")
|
string(REGEX REPLACE "^.*(${item_name}.framework/.*/?${item_name}).*$" "${default_embedded_path}/\\1" embedded_item "${item}")
|
||||||
else()
|
else()
|
||||||
# For other items, just use the same name as the original, but in the
|
# For other items, just use the same name as the original, but in the
|
||||||
# embedded path:
|
# embedded path:
|
||||||
|
|
|
@ -20,6 +20,14 @@
|
||||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#elif defined(__PATHCC__)
|
||||||
|
# define COMPILER_ID "PathScale"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||||
|
# if defined(__PATHCC_PATCHLEVEL__)
|
||||||
|
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||||
|
# endif
|
||||||
|
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
# define COMPILER_ID "Clang"
|
# define COMPILER_ID "Clang"
|
||||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||||
|
@ -95,14 +103,6 @@
|
||||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#elif defined(__PATHCC__)
|
|
||||||
# define COMPILER_ID "PathScale"
|
|
||||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
|
||||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
|
||||||
# if defined(__PATHCC_PATCHLEVEL__)
|
|
||||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#elif defined(_CRAYC)
|
#elif defined(_CRAYC)
|
||||||
# define COMPILER_ID "Cray"
|
# define COMPILER_ID "Cray"
|
||||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE)
|
# define COMPILER_VERSION_MAJOR DEC(_RELEASE)
|
||||||
|
|
|
@ -25,6 +25,14 @@
|
||||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#elif defined(__PATHCC__)
|
||||||
|
# define COMPILER_ID "PathScale"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||||
|
# if defined(__PATHCC_PATCHLEVEL__)
|
||||||
|
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||||
|
# endif
|
||||||
|
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
# define COMPILER_ID "Clang"
|
# define COMPILER_ID "Clang"
|
||||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||||
|
@ -100,14 +108,6 @@
|
||||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#elif defined(__PATHCC__)
|
|
||||||
# define COMPILER_ID "PathScale"
|
|
||||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
|
||||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
|
||||||
# if defined(__PATHCC_PATCHLEVEL__)
|
|
||||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#elif defined(_CRAYC)
|
#elif defined(_CRAYC)
|
||||||
# define COMPILER_ID "Cray"
|
# define COMPILER_ID "Cray"
|
||||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE)
|
# define COMPILER_VERSION_MAJOR DEC(_RELEASE)
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(CMakeParseArguments)
|
include(${CMAKE_CURRENT_LIST_DIR}/CMakeParseArguments.cmake)
|
||||||
|
|
||||||
function(CMAKE_EXPAND_IMPORTED_TARGETS _RESULT )
|
function(CMAKE_EXPAND_IMPORTED_TARGETS _RESULT )
|
||||||
|
|
||||||
|
|
|
@ -385,15 +385,13 @@ endif()
|
||||||
# Are we packaging components ?
|
# Are we packaging components ?
|
||||||
if(CPACK_DEB_PACKAGE_COMPONENT)
|
if(CPACK_DEB_PACKAGE_COMPONENT)
|
||||||
set(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "-${CPACK_DEB_PACKAGE_COMPONENT}")
|
set(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "-${CPACK_DEB_PACKAGE_COMPONENT}")
|
||||||
set(CPACK_DEB_PACKAGE_COMPONENT_PART_PATH "/${CPACK_DEB_PACKAGE_COMPONENT}")
|
|
||||||
set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/${CPACK_DEB_PACKAGE_COMPONENT}")
|
|
||||||
string(TOLOWER "${CPACK_PACKAGE_NAME}${CPACK_DEB_PACKAGE_COMPONENT_PART_NAME}" CPACK_DEBIAN_PACKAGE_NAME)
|
string(TOLOWER "${CPACK_PACKAGE_NAME}${CPACK_DEB_PACKAGE_COMPONENT_PART_NAME}" CPACK_DEBIAN_PACKAGE_NAME)
|
||||||
else()
|
else()
|
||||||
set(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "")
|
set(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "")
|
||||||
set(CPACK_DEB_PACKAGE_COMPONENT_PART_PATH "")
|
|
||||||
set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}${CPACK_DEB_PACKAGE_COMPONENT_PART_PATH}")
|
||||||
|
|
||||||
# Print out some debug information if we were asked for that
|
# Print out some debug information if we were asked for that
|
||||||
if(CPACK_DEBIAN_PACKAGE_DEBUG)
|
if(CPACK_DEBIAN_PACKAGE_DEBUG)
|
||||||
message("CPackDeb:Debug: CPACK_TOPLEVEL_DIRECTORY = ${CPACK_TOPLEVEL_DIRECTORY}")
|
message("CPackDeb:Debug: CPACK_TOPLEVEL_DIRECTORY = ${CPACK_TOPLEVEL_DIRECTORY}")
|
||||||
|
|
|
@ -311,14 +311,12 @@ endif()
|
||||||
# Are we packaging components ?
|
# Are we packaging components ?
|
||||||
if(CPACK_RPM_PACKAGE_COMPONENT)
|
if(CPACK_RPM_PACKAGE_COMPONENT)
|
||||||
set(CPACK_RPM_PACKAGE_COMPONENT_PART_NAME "-${CPACK_RPM_PACKAGE_COMPONENT}")
|
set(CPACK_RPM_PACKAGE_COMPONENT_PART_NAME "-${CPACK_RPM_PACKAGE_COMPONENT}")
|
||||||
set(CPACK_RPM_PACKAGE_COMPONENT_PART_PATH "/${CPACK_RPM_PACKAGE_COMPONENT}")
|
|
||||||
set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/${CPACK_RPM_PACKAGE_COMPONENT}")
|
|
||||||
else()
|
else()
|
||||||
set(CPACK_RPM_PACKAGE_COMPONENT_PART_NAME "")
|
set(CPACK_RPM_PACKAGE_COMPONENT_PART_NAME "")
|
||||||
set(CPACK_RPM_PACKAGE_COMPONENT_PART_PATH "")
|
|
||||||
set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}${CPACK_RPM_PACKAGE_COMPONENT_PART_PATH}")
|
||||||
|
|
||||||
#
|
#
|
||||||
# Use user-defined RPM specific variables value
|
# Use user-defined RPM specific variables value
|
||||||
# or generate reasonable default value from
|
# or generate reasonable default value from
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
|
||||||
|
set(CMAKE_LINK_LIBRARY_FLAG "--library=")
|
||||||
|
set(CMAKE_INCLUDE_FLAG_ASM "--include_path=")
|
||||||
|
|
||||||
|
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> --compile_only --asm_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<OBJECT>")
|
||||||
|
set(CMAKE_ASM_LINK_EXECUTABLE "<CMAKE_ASM_COMPILER> <OBJECTS> --run_linker --output_file=<TARGET> <CMAKE_ASM_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>")
|
||||||
|
|
||||||
|
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm;s;abs)
|
|
@ -0,0 +1,10 @@
|
||||||
|
set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
|
||||||
|
set(CMAKE_LINK_LIBRARY_FLAG "--library=")
|
||||||
|
set(CMAKE_INCLUDE_FLAG_C "--include_path=")
|
||||||
|
|
||||||
|
set(CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> --compile_only --skip_assembler --c_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<ASSEMBLY_SOURCE>")
|
||||||
|
set(CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> --preproc_only --c_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<PREPROCESSED_SOURCE>")
|
||||||
|
|
||||||
|
set(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> --compile_only --c_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<OBJECT>")
|
||||||
|
set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> -r <TARGET> <OBJECTS>")
|
||||||
|
set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET>.map <CMAKE_C_LINK_FLAGS> <LINK_LIBRARIES> <LINK_FLAGS> <OBJECTS>")
|
|
@ -0,0 +1,10 @@
|
||||||
|
set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
|
||||||
|
set(CMAKE_LINK_LIBRARY_FLAG "--library=")
|
||||||
|
set(CMAKE_INCLUDE_FLAG_CXX "--include_path=")
|
||||||
|
|
||||||
|
set(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> --compile_only --skip_assembler --cpp_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<ASSEMBLY_SOURCE>")
|
||||||
|
set(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> --preproc_only --cpp_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<PREPROCESSED_SOURCE>")
|
||||||
|
|
||||||
|
set(CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> --compile_only --cpp_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<OBJECT>")
|
||||||
|
set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> -r <TARGET> <OBJECTS>")
|
||||||
|
set(CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_CXX_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET>.map <CMAKE_CXX_LINK_FLAGS> <LINK_LIBRARIES> <LINK_FLAGS> <OBJECTS>")
|
|
@ -80,7 +80,7 @@
|
||||||
# The functions defined in this file depend on the fixup_bundle function
|
# The functions defined in this file depend on the fixup_bundle function
|
||||||
# (and others) found in BundleUtilities.cmake
|
# (and others) found in BundleUtilities.cmake
|
||||||
|
|
||||||
include(BundleUtilities)
|
include("${CMAKE_CURRENT_LIST_DIR}/BundleUtilities.cmake")
|
||||||
set(DeployQt4_cmake_dir "${CMAKE_CURRENT_LIST_DIR}")
|
set(DeployQt4_cmake_dir "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
set(DeployQt4_apple_plugins_dir "PlugIns")
|
set(DeployQt4_apple_plugins_dir "PlugIns")
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(CMakeParseArguments)
|
include("${CMAKE_CURRENT_LIST_DIR}/CMakeParseArguments.cmake")
|
||||||
|
|
||||||
|
|
||||||
function(ADD_FEATURE_INFO _name _enabled _desc)
|
function(ADD_FEATURE_INFO _name _enabled _desc)
|
||||||
|
|
|
@ -40,8 +40,8 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(CheckFunctionExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckFunctionExists.cmake)
|
||||||
include(CheckFortranFunctionExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckFortranFunctionExists.cmake)
|
||||||
|
|
||||||
set(_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
set(_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2
|
||||||
VERSION_VAR BZIP2_VERSION_STRING)
|
VERSION_VAR BZIP2_VERSION_STRING)
|
||||||
|
|
||||||
if (BZIP2_FOUND)
|
if (BZIP2_FOUND)
|
||||||
include(CheckLibraryExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake)
|
||||||
CHECK_LIBRARY_EXISTS("${BZIP2_LIBRARIES}" BZ2_bzCompressInit "" BZIP2_NEED_PREFIX)
|
CHECK_LIBRARY_EXISTS("${BZIP2_LIBRARIES}" BZ2_bzCompressInit "" BZIP2_NEED_PREFIX)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ find_path(CUPS_INCLUDE_DIR cups/cups.h )
|
||||||
find_library(CUPS_LIBRARIES NAMES cups )
|
find_library(CUPS_LIBRARIES NAMES cups )
|
||||||
|
|
||||||
if (CUPS_INCLUDE_DIR AND CUPS_LIBRARIES AND CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE)
|
if (CUPS_INCLUDE_DIR AND CUPS_LIBRARIES AND CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE)
|
||||||
include(CheckLibraryExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake)
|
||||||
|
|
||||||
# ippDeleteAttribute is new in cups-1.1.19 (and used by kdeprint)
|
# ippDeleteAttribute is new in cups-1.1.19 (and used by kdeprint)
|
||||||
CHECK_LIBRARY_EXISTS(cups ippDeleteAttribute "" CUPS_HAS_IPP_DELETE_ATTRIBUTE)
|
CHECK_LIBRARY_EXISTS(cups ippDeleteAttribute "" CUPS_HAS_IPP_DELETE_ATTRIBUTE)
|
||||||
|
|
|
@ -56,7 +56,7 @@ endif()
|
||||||
# prefix as the library was found, if still not found, try curses.h with the
|
# prefix as the library was found, if still not found, try curses.h with the
|
||||||
# default search paths.
|
# default search paths.
|
||||||
if(CURSES_CURSES_LIBRARY AND CURSES_NEED_NCURSES)
|
if(CURSES_CURSES_LIBRARY AND CURSES_NEED_NCURSES)
|
||||||
include(CheckLibraryExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake)
|
||||||
CHECK_LIBRARY_EXISTS("${CURSES_CURSES_LIBRARY}"
|
CHECK_LIBRARY_EXISTS("${CURSES_CURSES_LIBRARY}"
|
||||||
wsyncup "" CURSES_CURSES_HAS_WSYNCUP)
|
wsyncup "" CURSES_CURSES_HAS_WSYNCUP)
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ if(WIN32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
include(FindX11)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindX11.cmake)
|
||||||
find_library(FLTK_MATH_LIBRARY m)
|
find_library(FLTK_MATH_LIBRARY m)
|
||||||
set( FLTK_PLATFORM_DEPENDENT_LIBS ${X11_LIBRARIES} ${FLTK_MATH_LIBRARY})
|
set( FLTK_PLATFORM_DEPENDENT_LIBS ${X11_LIBRARIES} ${FLTK_MATH_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -58,8 +58,8 @@ set(GIF_LIBRARIES ${GIF_LIBRARY})
|
||||||
# one.
|
# one.
|
||||||
# http://giflib.sourcearchive.com/documentation/4.1.4/files.html
|
# http://giflib.sourcearchive.com/documentation/4.1.4/files.html
|
||||||
if(GIF_INCLUDE_DIR)
|
if(GIF_INCLUDE_DIR)
|
||||||
include(CMakePushCheckState)
|
include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake)
|
||||||
include(CheckStructHasMember)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckStructHasMember.cmake)
|
||||||
CMAKE_PUSH_CHECK_STATE()
|
CMAKE_PUSH_CHECK_STATE()
|
||||||
set(GIF_VERSION 3)
|
set(GIF_VERSION 3)
|
||||||
set(CMAKE_REQUIRED_INCLUDES "${GIF_INCLUDE_DIR}")
|
set(CMAKE_REQUIRED_INCLUDES "${GIF_INCLUDE_DIR}")
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
message(STATUS
|
message(STATUS
|
||||||
"WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead")
|
"WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead")
|
||||||
|
|
||||||
include(FindOpenGL)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindOpenGL.cmake)
|
||||||
|
|
||||||
if (OPENGL_GLU_FOUND)
|
if (OPENGL_GLU_FOUND)
|
||||||
set (GLU_LIBRARY ${OPENGL_LIBRARIES})
|
set (GLU_LIBRARY ${OPENGL_LIBRARIES})
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(FindCygwin)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
|
||||||
|
|
||||||
find_program(GNUPLOT_EXECUTABLE
|
find_program(GNUPLOT_EXECUTABLE
|
||||||
NAMES
|
NAMES
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
# This module is maintained by Will Dicharry <wdicharry@stellarscience.com>.
|
# This module is maintained by Will Dicharry <wdicharry@stellarscience.com>.
|
||||||
|
|
||||||
include(SelectLibraryConfigurations)
|
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
|
|
||||||
# List of the valid HDF5 components
|
# List of the valid HDF5 components
|
||||||
|
|
|
@ -245,7 +245,7 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
# KDE3Macros.cmake contains all the KDE specific macros
|
# KDE3Macros.cmake contains all the KDE specific macros
|
||||||
include(KDE3Macros)
|
include(${CMAKE_CURRENT_LIST_DIR}/KDE3Macros.cmake)
|
||||||
|
|
||||||
|
|
||||||
macro (KDE3_PRINT_RESULTS)
|
macro (KDE3_PRINT_RESULTS)
|
||||||
|
|
|
@ -40,9 +40,9 @@ set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
|
||||||
get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES)
|
get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES)
|
||||||
if (NOT _LANGUAGES_ MATCHES Fortran)
|
if (NOT _LANGUAGES_ MATCHES Fortran)
|
||||||
include(CheckFunctionExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckFunctionExists.cmake)
|
||||||
else ()
|
else ()
|
||||||
include(CheckFortranFunctionExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckFortranFunctionExists.cmake)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set(LAPACK_FOUND FALSE)
|
set(LAPACK_FOUND FALSE)
|
||||||
|
|
|
@ -45,7 +45,7 @@ if(MPEG2_FOUND)
|
||||||
|
|
||||||
#some native mpeg2 installations will depend
|
#some native mpeg2 installations will depend
|
||||||
#on libSDL, if found, add it in.
|
#on libSDL, if found, add it in.
|
||||||
include( FindSDL )
|
include(${CMAKE_CURRENT_LIST_DIR}/FindSDL.cmake)
|
||||||
if(SDL_FOUND)
|
if(SDL_FOUND)
|
||||||
set( MPEG2_LIBRARIES ${MPEG2_LIBRARIES} ${SDL_LIBRARY})
|
set( MPEG2_LIBRARIES ${MPEG2_LIBRARIES} ${SDL_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
# include this to handle the QUIETLY and REQUIRED arguments
|
# include this to handle the QUIETLY and REQUIRED arguments
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
include(GetPrerequisites)
|
include(${CMAKE_CURRENT_LIST_DIR}/GetPrerequisites.cmake)
|
||||||
|
|
||||||
#
|
#
|
||||||
# This part detects MPI compilers, attempting to wade through the mess of compiler names in
|
# This part detects MPI compilers, attempting to wade through the mess of compiler names in
|
||||||
|
|
|
@ -103,7 +103,7 @@ else ()
|
||||||
|
|
||||||
if (OPENGL_gl_LIBRARY)
|
if (OPENGL_gl_LIBRARY)
|
||||||
if(NOT X11_FOUND)
|
if(NOT X11_FOUND)
|
||||||
include(FindX11)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindX11.cmake)
|
||||||
endif()
|
endif()
|
||||||
if (X11_FOUND)
|
if (X11_FOUND)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE)
|
||||||
|
|
|
@ -95,7 +95,7 @@ if(CMAKE_C_COMPILER_LOADED)
|
||||||
unset(OpenMP_C_FLAG_CANDIDATES)
|
unset(OpenMP_C_FLAG_CANDIDATES)
|
||||||
else()
|
else()
|
||||||
_OPENMP_FLAG_CANDIDATES("C")
|
_OPENMP_FLAG_CANDIDATES("C")
|
||||||
include(CheckCSourceCompiles)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckCSourceCompiles.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
foreach(FLAG ${OpenMP_C_FLAG_CANDIDATES})
|
foreach(FLAG ${OpenMP_C_FLAG_CANDIDATES})
|
||||||
|
@ -126,7 +126,7 @@ if(CMAKE_CXX_COMPILER_LOADED)
|
||||||
unset(OpenMP_CXX_FLAG_CANDIDATES)
|
unset(OpenMP_CXX_FLAG_CANDIDATES)
|
||||||
else()
|
else()
|
||||||
_OPENMP_FLAG_CANDIDATES("CXX")
|
_OPENMP_FLAG_CANDIDATES("CXX")
|
||||||
include(CheckCXXSourceCompiles)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckCXXSourceCompiles.cmake)
|
||||||
|
|
||||||
# use the same source for CXX as C for now
|
# use the same source for CXX as C for now
|
||||||
set(OpenMP_CXX_TEST_SOURCE ${OpenMP_C_TEST_SOURCE})
|
set(OpenMP_CXX_TEST_SOURCE ${OpenMP_C_TEST_SOURCE})
|
||||||
|
|
|
@ -87,6 +87,7 @@ if(WIN32 AND NOT CYGWIN)
|
||||||
find_library(LIB_EAY_DEBUG
|
find_library(LIB_EAY_DEBUG
|
||||||
NAMES
|
NAMES
|
||||||
libeay32MDd
|
libeay32MDd
|
||||||
|
libeay32d
|
||||||
${_OPENSSL_ROOT_HINTS_AND_PATHS}
|
${_OPENSSL_ROOT_HINTS_AND_PATHS}
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
"lib"
|
"lib"
|
||||||
|
@ -108,6 +109,7 @@ if(WIN32 AND NOT CYGWIN)
|
||||||
find_library(SSL_EAY_DEBUG
|
find_library(SSL_EAY_DEBUG
|
||||||
NAMES
|
NAMES
|
||||||
ssleay32MDd
|
ssleay32MDd
|
||||||
|
ssleay32d
|
||||||
${_OPENSSL_ROOT_HINTS_AND_PATHS}
|
${_OPENSSL_ROOT_HINTS_AND_PATHS}
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
"lib"
|
"lib"
|
||||||
|
@ -127,6 +129,11 @@ if(WIN32 AND NOT CYGWIN)
|
||||||
"lib/VC"
|
"lib/VC"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(LIB_EAY_LIBRARY_DEBUG "${LIB_EAY_DEBUG}")
|
||||||
|
set(LIB_EAY_LIBRARY_RELEASE "${LIB_EAY_RELEASE}")
|
||||||
|
set(SSL_EAY_LIBRARY_DEBUG "${SSL_EAY_DEBUG}")
|
||||||
|
set(SSL_EAY_LIBRARY_RELEASE "${SSL_EAY_RELEASE}")
|
||||||
|
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
|
||||||
select_library_configurations(LIB_EAY)
|
select_library_configurations(LIB_EAY)
|
||||||
select_library_configurations(SSL_EAY)
|
select_library_configurations(SSL_EAY)
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
# Output variables of the form OPENSCENEGRAPH_FOO
|
# Output variables of the form OPENSCENEGRAPH_FOO
|
||||||
#
|
#
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
|
|
||||||
set(_osg_modules_to_process)
|
set(_osg_modules_to_process)
|
||||||
foreach(_osg_component ${OpenSceneGraph_FIND_COMPONENTS})
|
foreach(_osg_component ${OpenSceneGraph_FIND_COMPONENTS})
|
||||||
|
|
|
@ -88,8 +88,8 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(FindPackageMessage)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageMessage.cmake)
|
||||||
include(CMakeParseArguments)
|
include(${CMAKE_CURRENT_LIST_DIR}/CMakeParseArguments.cmake)
|
||||||
|
|
||||||
# internal helper macro
|
# internal helper macro
|
||||||
macro(_FPHSA_FAILURE_MESSAGE _msg)
|
macro(_FPHSA_FAILURE_MESSAGE _msg)
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(FindCygwin)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
|
||||||
|
|
||||||
set(PERL_POSSIBLE_BIN_PATHS
|
set(PERL_POSSIBLE_BIN_PATHS
|
||||||
${CYGWIN_INSTALL_PATH}/bin
|
${CYGWIN_INSTALL_PATH}/bin
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
# find the perl executable
|
# find the perl executable
|
||||||
include(FindPerl)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPerl.cmake)
|
||||||
|
|
||||||
if (PERL_EXECUTABLE)
|
if (PERL_EXECUTABLE)
|
||||||
### PERL_PREFIX
|
### PERL_PREFIX
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(CMakeFindFrameworks)
|
include(${CMAKE_CURRENT_LIST_DIR}/CMakeFindFrameworks.cmake)
|
||||||
# Search for the python framework on Apple.
|
# Search for the python framework on Apple.
|
||||||
CMAKE_FIND_FRAMEWORKS(Python)
|
CMAKE_FIND_FRAMEWORKS(Python)
|
||||||
|
|
||||||
|
|
|
@ -133,12 +133,12 @@ endif()
|
||||||
if(DESIRED_QT_VERSION MATCHES 3)
|
if(DESIRED_QT_VERSION MATCHES 3)
|
||||||
set(Qt3_FIND_REQUIRED ${Qt_FIND_REQUIRED})
|
set(Qt3_FIND_REQUIRED ${Qt_FIND_REQUIRED})
|
||||||
set(Qt3_FIND_QUIETLY ${Qt_FIND_QUIETLY})
|
set(Qt3_FIND_QUIETLY ${Qt_FIND_QUIETLY})
|
||||||
include(FindQt3)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindQt3.cmake)
|
||||||
endif()
|
endif()
|
||||||
if(DESIRED_QT_VERSION MATCHES 4)
|
if(DESIRED_QT_VERSION MATCHES 4)
|
||||||
set(Qt4_FIND_REQUIRED ${Qt_FIND_REQUIRED})
|
set(Qt4_FIND_REQUIRED ${Qt_FIND_REQUIRED})
|
||||||
set(Qt4_FIND_QUIETLY ${Qt_FIND_QUIETLY})
|
set(Qt4_FIND_QUIETLY ${Qt_FIND_QUIETLY})
|
||||||
include(FindQt4)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindQt4.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT QT3_INSTALLED AND NOT QT4_INSTALLED)
|
if(NOT QT3_INSTALLED AND NOT QT4_INSTALLED)
|
||||||
|
|
|
@ -376,8 +376,8 @@ if(QT_QT_LIBRARY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
include(CheckCXXSymbolExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckCXXSymbolExists.cmake)
|
||||||
include(MacroAddFileDependencies)
|
include(${CMAKE_CURRENT_LIST_DIR}/MacroAddFileDependencies.cmake)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
|
|
||||||
set(QT_USE_FILE ${CMAKE_ROOT}/Modules/UseQt4.cmake)
|
set(QT_USE_FILE ${CMAKE_ROOT}/Modules/UseQt4.cmake)
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
find_path(SDL_INCLUDE_DIR SDL.h
|
find_path(SDL_INCLUDE_DIR SDL.h
|
||||||
HINTS
|
HINTS
|
||||||
ENV SDLDIR
|
ENV SDLDIR
|
||||||
PATH_SUFFIXES SDL SDL12 SDL11
|
PATH_SUFFIXES include/SDL include/SDL12 include/SDL11 include
|
||||||
)
|
)
|
||||||
|
|
||||||
# SDL-1.1 is the name used by FreeBSD ports...
|
# SDL-1.1 is the name used by FreeBSD ports...
|
||||||
|
@ -79,6 +79,7 @@ find_library(SDL_LIBRARY_TEMP
|
||||||
NAMES SDL SDL-1.1
|
NAMES SDL SDL-1.1
|
||||||
HINTS
|
HINTS
|
||||||
ENV SDLDIR
|
ENV SDLDIR
|
||||||
|
PATH_SUFFIXES lib
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT SDL_BUILDING_LIBRARY)
|
if(NOT SDL_BUILDING_LIBRARY)
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(FindCygwin)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
|
||||||
|
|
||||||
find_program(SELF_PACKER_FOR_EXECUTABLE
|
find_program(SELF_PACKER_FOR_EXECUTABLE
|
||||||
upx
|
upx
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
#
|
#
|
||||||
# ---- Find Squish
|
# ---- Find Squish
|
||||||
# This module can be used to find Squish (currently support is aimed at version 3).
|
# This module can be used to find Squish. Currently Squish versions 3 and 4 are supported.
|
||||||
#
|
#
|
||||||
# ---- Variables and Macros
|
# ---- Variables and Macros
|
||||||
# SQUISH_FOUND If false, don't try to use Squish
|
# SQUISH_FOUND If false, don't try to use Squish
|
||||||
|
# SQUISH_VERSION The full version of Squish found
|
||||||
|
# SQUISH_VERSION_MAJOR The major version of Squish found
|
||||||
|
# SQUISH_VERSION_MINOR The minor version of Squish found
|
||||||
|
# SQUISH_VERSION_PATCH The patch version of Squish found
|
||||||
#
|
#
|
||||||
# SQUISH_INSTALL_DIR The Squish installation directory (containing bin, lib, etc)
|
# SQUISH_INSTALL_DIR The Squish installation directory (containing bin, lib, etc)
|
||||||
# SQUISH_SERVER_EXECUTABLE The squishserver executable
|
# SQUISH_SERVER_EXECUTABLE The squishserver executable
|
||||||
|
@ -13,18 +17,52 @@
|
||||||
# SQUISH_SERVER_EXECUTABLE_FOUND Was the server executable found?
|
# SQUISH_SERVER_EXECUTABLE_FOUND Was the server executable found?
|
||||||
# SQUISH_CLIENT_EXECUTABLE_FOUND Was the client executable found?
|
# SQUISH_CLIENT_EXECUTABLE_FOUND Was the client executable found?
|
||||||
#
|
#
|
||||||
# macro SQUISH_ADD_TEST(testName applicationUnderTest testSuite testCase)
|
# It provides the function squish_v4_add_test() for adding a squish test to cmake using Squish 4.x:
|
||||||
|
#
|
||||||
|
# squish_v4_add_test(cmakeTestName AUT targetName SUITE suiteName TEST squishTestName
|
||||||
|
# [SETTINGSGROUP group] [PRE_COMMAND command] [POST_COMMAND command] )
|
||||||
|
#
|
||||||
|
# The arguments have the following meaning:
|
||||||
|
# cmakeTestName: this will be used as the first argument for add_test()
|
||||||
|
# AUT targetName: the name of the cmake target which will be used as AUT, i.e. the
|
||||||
|
# executable which will be tested.
|
||||||
|
# SUITE suiteName: this is either the full path to the squish suite, or just the
|
||||||
|
# last directory of the suite, i.e. the suite name. In this case
|
||||||
|
# the CMakeLists.txt which calls squish_add_test() must be located
|
||||||
|
# in the parent directory of the suite directory.
|
||||||
|
# TEST squishTestName: the name of the squish test, i.e. the name of the subdirectory
|
||||||
|
# of the test inside the suite directory.
|
||||||
|
# SETTINGSGROUP group: if specified, the given settings group will be used for executing the test.
|
||||||
|
# If not specified, the groupname will be "CTest_<username>"
|
||||||
|
# PRE_COMMAND command: if specified, the given command will be executed before starting the squish test.
|
||||||
|
# POST_COMMAND command: same as PRE_COMMAND, but after the squish test has been executed.
|
||||||
|
#
|
||||||
|
# ---- Typical Use
|
||||||
|
# enable_testing()
|
||||||
|
# find_package(Squish 4.0)
|
||||||
|
# if (SQUISH_FOUND)
|
||||||
|
# squish_v4_add_test(myTestName AUT myApp SUITE ${CMAKE_SOURCE_DIR}/tests/mySuite TEST someSquishTest SETTINGSGROUP myGroup )
|
||||||
|
# endif ()
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# For users of Squish version 3.x the macro squish_v3_add_test() is provided:
|
||||||
|
# squish_v3_add_test(testName applicationUnderTest testCase envVars testWrapper)
|
||||||
|
# Use this macro to add a test using Squish 3.x.
|
||||||
#
|
#
|
||||||
# ---- Typical Use
|
# ---- Typical Use
|
||||||
# enable_testing()
|
# enable_testing()
|
||||||
# find_package(Squish)
|
# find_package(Squish)
|
||||||
# if (SQUISH_FOUND)
|
# if (SQUISH_FOUND)
|
||||||
# SQUISH_ADD_TEST(myTestName myApplication testSuiteName testCaseName)
|
# squish_v3_add_test(myTestName myApplication testCase envVars testWrapper)
|
||||||
# endif ()
|
# endif ()
|
||||||
#
|
#
|
||||||
|
# macro SQUISH_ADD_TEST(testName applicationUnderTest testCase envVars testWrapper)
|
||||||
|
# This is deprecated. Use SQUISH_V3_ADD_TEST() if you are using Squish 3.x instead.
|
||||||
|
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# Copyright 2008-2009 Kitware, Inc.
|
# Copyright 2008-2009 Kitware, Inc.
|
||||||
|
# Copyright 2012 Alexander Neundorf
|
||||||
#
|
#
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
# Distributed under the OSI-approved BSD License (the "License");
|
||||||
# see accompanying file Copyright.txt for details.
|
# see accompanying file Copyright.txt for details.
|
||||||
|
@ -36,6 +74,9 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
|
|
||||||
|
include(CMakeParseArguments)
|
||||||
|
|
||||||
set(SQUISH_INSTALL_DIR_STRING "Directory containing the bin, doc, and lib directories for Squish; this should be the root of the installation directory.")
|
set(SQUISH_INSTALL_DIR_STRING "Directory containing the bin, doc, and lib directories for Squish; this should be the root of the installation directory.")
|
||||||
set(SQUISH_SERVER_EXECUTABLE_STRING "The squishserver executable program.")
|
set(SQUISH_SERVER_EXECUTABLE_STRING "The squishserver executable program.")
|
||||||
set(SQUISH_CLIENT_EXECUTABLE_STRING "The squishclient executable program.")
|
set(SQUISH_CLIENT_EXECUTABLE_STRING "The squishclient executable program.")
|
||||||
|
@ -74,21 +115,36 @@ if(SQUISH_INSTALL_DIR)
|
||||||
|
|
||||||
# find the client program
|
# find the client program
|
||||||
if(NOT SQUISH_CLIENT_EXECUTABLE)
|
if(NOT SQUISH_CLIENT_EXECUTABLE)
|
||||||
find_program(SQUISH_CLIENT_EXECUTABLE ${SQUISH_INSTALL_DIR}/bin/squishrunner DOC "The ${SQUISH_CLIENT_EXECUTABLE_STRING}")
|
find_program(SQUISH_CLIENT_EXECUTABLE ${SQUISH_INSTALL_DIR}/bin/squishrunner${CMAKE_EXECUTABLE_SUFFIX} DOC "The ${SQUISH_CLIENT_EXECUTABLE_STRING}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# find the server program
|
# find the server program
|
||||||
if(NOT SQUISH_SERVER_EXECUTABLE)
|
if(NOT SQUISH_SERVER_EXECUTABLE)
|
||||||
find_program(SQUISH_SERVER_EXECUTABLE ${SQUISH_INSTALL_DIR}/bin/squishserver DOC "The ${SQUISH_SERVER_EXECUTABLE_STRING}")
|
find_program(SQUISH_SERVER_EXECUTABLE ${SQUISH_INSTALL_DIR}/bin/squishserver${CMAKE_EXECUTABLE_SUFFIX} DOC "The ${SQUISH_SERVER_EXECUTABLE_STRING}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
set(SQUISH_INSTALL_DIR_FOUND 0)
|
set(SQUISH_INSTALL_DIR_FOUND 0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
set(SQUISH_VERSION)
|
||||||
|
set(SQUISH_VERSION_MAJOR )
|
||||||
|
set(SQUISH_VERSION_MINOR )
|
||||||
|
set(SQUISH_VERSION_PATCH )
|
||||||
|
|
||||||
# record if executables are set
|
# record if executables are set
|
||||||
if(SQUISH_CLIENT_EXECUTABLE)
|
if(SQUISH_CLIENT_EXECUTABLE)
|
||||||
set(SQUISH_CLIENT_EXECUTABLE_FOUND 1)
|
set(SQUISH_CLIENT_EXECUTABLE_FOUND 1)
|
||||||
|
execute_process(COMMAND "${SQUISH_CLIENT_EXECUTABLE}" --version
|
||||||
|
OUTPUT_VARIABLE _squishVersionOutput
|
||||||
|
ERROR_QUIET )
|
||||||
|
if("${_squishVersionOutput}" MATCHES "([0-9]+)\\.([0-9]+)\\.([0-9]+).*$")
|
||||||
|
set(SQUISH_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
||||||
|
set(SQUISH_VERSION_MINOR "${CMAKE_MATCH_2}")
|
||||||
|
set(SQUISH_VERSION_PATCH "${CMAKE_MATCH_3}")
|
||||||
|
set(SQUISH_VERSION "${SQUISH_VERSION_MAJOR}.${SQUISH_VERSION_MINOR}.${SQUISH_VERSION_PATCH}" )
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
set(SQUISH_CLIENT_EXECUTABLE_FOUND 0)
|
set(SQUISH_CLIENT_EXECUTABLE_FOUND 0)
|
||||||
endif()
|
endif()
|
||||||
|
@ -100,16 +156,21 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# record if Squish was found
|
# record if Squish was found
|
||||||
set(SQUISH_FOUND 1)
|
include(FindPackageHandleStandardArgs)
|
||||||
foreach(var SQUISH_INSTALL_DIR_FOUND SQUISH_CLIENT_EXECUTABLE_FOUND SQUISH_SERVER_EXECUTABLE_FOUND)
|
find_package_handle_standard_args(Squish REQUIRED_VARS SQUISH_INSTALL_DIR SQUISH_CLIENT_EXECUTABLE SQUISH_SERVER_EXECUTABLE
|
||||||
if(NOT ${var})
|
VERSION_VAR SQUISH_VERSION )
|
||||||
set(SQUISH_FOUND 0)
|
|
||||||
endif()
|
|
||||||
endforeach()
|
set(_SQUISH_MODULE_DIR "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
|
macro(SQUISH_V3_ADD_TEST testName testAUT testCase envVars testWraper)
|
||||||
|
if("${SQUISH_VERSION_MAJOR}" STREQUAL "4")
|
||||||
|
message(STATUS "Using squish_v3_add_test(), but SQUISH_VERSION_MAJOR is ${SQUISH_VERSION_MAJOR}.\nThis may not work.")
|
||||||
|
endif()
|
||||||
|
|
||||||
macro(SQUISH_ADD_TEST testName testAUT testCase envVars testWraper)
|
|
||||||
add_test(${testName}
|
add_test(${testName}
|
||||||
${CMAKE_COMMAND} -V -VV
|
${CMAKE_COMMAND} -V -VV
|
||||||
|
"-Dsquish_version:STRING=3"
|
||||||
"-Dsquish_aut:STRING=${testAUT}"
|
"-Dsquish_aut:STRING=${testAUT}"
|
||||||
"-Dsquish_server_executable:STRING=${SQUISH_SERVER_EXECUTABLE}"
|
"-Dsquish_server_executable:STRING=${SQUISH_SERVER_EXECUTABLE}"
|
||||||
"-Dsquish_client_executable:STRING=${SQUISH_CLIENT_EXECUTABLE}"
|
"-Dsquish_client_executable:STRING=${SQUISH_CLIENT_EXECUTABLE}"
|
||||||
|
@ -117,10 +178,84 @@ macro(SQUISH_ADD_TEST testName testAUT testCase envVars testWraper)
|
||||||
"-Dsquish_test_case:STRING=${testCase}"
|
"-Dsquish_test_case:STRING=${testCase}"
|
||||||
"-Dsquish_env_vars:STRING=${envVars}"
|
"-Dsquish_env_vars:STRING=${envVars}"
|
||||||
"-Dsquish_wrapper:STRING=${testWraper}"
|
"-Dsquish_wrapper:STRING=${testWraper}"
|
||||||
-P "${CMAKE_ROOT}/Modules/SquishTestScript.cmake"
|
"-Dsquish_module_dir:STRING=${_SQUISH_MODULE_DIR}"
|
||||||
|
-P "${_SQUISH_MODULE_DIR}/SquishTestScript.cmake"
|
||||||
)
|
)
|
||||||
set_tests_properties(${testName}
|
set_tests_properties(${testName}
|
||||||
PROPERTIES FAIL_REGULAR_EXPRESSION "FAILED;ERROR;FATAL"
|
PROPERTIES FAIL_REGULAR_EXPRESSION "FAILED;ERROR;FATAL"
|
||||||
)
|
)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
|
||||||
|
macro(SQUISH_ADD_TEST)
|
||||||
|
message(STATUS "Using squish_add_test() is deprecated, use squish_v3_add_test() instead.")
|
||||||
|
squish_v3_add_test(${ARGV})
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
|
||||||
|
function(SQUISH_V4_ADD_TEST testName)
|
||||||
|
|
||||||
|
if(NOT "${SQUISH_VERSION_MAJOR}" STREQUAL "4")
|
||||||
|
message(STATUS "Using squish_v4_add_test(), but SQUISH_VERSION_MAJOR is ${SQUISH_VERSION_MAJOR}.\nThis may not work.")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(oneValueArgs AUT SUITE TEST SETTINGSGROUP PRE_COMMAND POST_COMMAND)
|
||||||
|
|
||||||
|
cmake_parse_arguments(_SQUISH "" "${oneValueArgs}" "" ${ARGN} )
|
||||||
|
|
||||||
|
if(_SQUISH_UNPARSED_ARGUMENTS)
|
||||||
|
message(FATAL_ERROR "Unknown keywords given to SQUISH_ADD_TEST(): \"${_SQUISH_UNPARSED_ARGUMENTS}\"")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT _SQUISH_AUT)
|
||||||
|
message(FATAL_ERROR "Required argument AUT not given for SQUISH_ADD_TEST()")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT _SQUISH_SUITE)
|
||||||
|
message(FATAL_ERROR "Required argument SUITE not given for SQUISH_ADD_TEST()")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT _SQUISH_TEST)
|
||||||
|
message(FATAL_ERROR "Required argument TEST not given for SQUISH_ADD_TEST()")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
get_target_property(testAUTLocation ${_SQUISH_AUT} LOCATION)
|
||||||
|
get_filename_component(testAUTDir ${testAUTLocation} PATH)
|
||||||
|
get_target_property(testAUTName ${_SQUISH_AUT} OUTPUT_NAME)
|
||||||
|
|
||||||
|
get_filename_component(absTestSuite "${_SQUISH_SUITE}" ABSOLUTE)
|
||||||
|
if(NOT EXISTS "${absTestSuite}")
|
||||||
|
message(FATAL_ERROR "Could not find squish test suite ${_SQUISH_SUITE} (checked ${absTestSuite})")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(absTestCase "${absTestSuite}/${_SQUISH_TEST}")
|
||||||
|
if(NOT EXISTS "${absTestCase}")
|
||||||
|
message(FATAL_ERROR "Could not find squish testcase ${_SQUISH_TEST} (checked ${absTestCase})")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT _SQUISH_SETTINGSGROUP)
|
||||||
|
set(_SQUISH_SETTINGSGROUP "CTest_$ENV{LOGNAME}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_test(${testName}
|
||||||
|
${CMAKE_COMMAND} -V -VV
|
||||||
|
"-Dsquish_version:STRING=4"
|
||||||
|
"-Dsquish_aut:STRING=${testAUTName}"
|
||||||
|
"-Dsquish_aut_dir:STRING=${testAUTDir}"
|
||||||
|
"-Dsquish_server_executable:STRING=${SQUISH_SERVER_EXECUTABLE}"
|
||||||
|
"-Dsquish_client_executable:STRING=${SQUISH_CLIENT_EXECUTABLE}"
|
||||||
|
"-Dsquish_libqtdir:STRING=${QT_LIBRARY_DIR}"
|
||||||
|
"-Dsquish_test_suite:STRING=${absTestSuite}"
|
||||||
|
"-Dsquish_test_case:STRING=${_SQUISH_TEST}"
|
||||||
|
"-Dsquish_env_vars:STRING=${envVars}"
|
||||||
|
"-Dsquish_wrapper:STRING=${testWraper}"
|
||||||
|
"-Dsquish_module_dir:STRING=${_SQUISH_MODULE_DIR}"
|
||||||
|
"-Dsquish_settingsgroup:STRING=${_SQUISH_SETTINGSGROUP}"
|
||||||
|
"-Dsquish_pre_command:STRING=${_SQUISH_PRE_COMMAND}"
|
||||||
|
"-Dsquish_post_command:STRING=${_SQUISH_POST_COMMAND}"
|
||||||
|
-P "${_SQUISH_MODULE_DIR}/SquishTestScript.cmake"
|
||||||
|
)
|
||||||
|
set_tests_properties(${testName}
|
||||||
|
PROPERTIES FAIL_REGULAR_EXPRESSION "FAIL;FAILED;ERROR;FATAL"
|
||||||
|
)
|
||||||
|
endfunction()
|
||||||
|
|
|
@ -44,9 +44,9 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(CMakeFindFrameworks)
|
include(${CMAKE_CURRENT_LIST_DIR}/CMakeFindFrameworks.cmake)
|
||||||
include(FindTclsh)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindTclsh.cmake)
|
||||||
include(FindWish)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindWish.cmake)
|
||||||
|
|
||||||
if(TCLSH_VERSION_STRING)
|
if(TCLSH_VERSION_STRING)
|
||||||
set(TCL_TCLSH_VERSION "${TCLSH_VERSION_STRING}")
|
set(TCL_TCLSH_VERSION "${TCLSH_VERSION_STRING}")
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(FindTCL)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindTCL.cmake)
|
||||||
|
|
||||||
get_filename_component(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH)
|
get_filename_component(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH)
|
||||||
get_filename_component(TCL_TCLSH_PATH_PARENT "${TCL_TCLSH_PATH}" PATH)
|
get_filename_component(TCL_TCLSH_PATH_PARENT "${TCL_TCLSH_PATH}" PATH)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(FindCygwin)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
|
||||||
|
|
||||||
find_program(BASH
|
find_program(BASH
|
||||||
bash
|
bash
|
||||||
|
|
|
@ -62,7 +62,7 @@ set(VTK_DIR_MESSAGE "VTK not found. Set the VTK_DIR cmake cache entry to the ${
|
||||||
if(_VTK_40_ALLOW AND VTK_DIR)
|
if(_VTK_40_ALLOW AND VTK_DIR)
|
||||||
if(EXISTS ${VTK_DIR}/UseVTK.cmake AND NOT EXISTS ${VTK_DIR}/VTKConfig.cmake)
|
if(EXISTS ${VTK_DIR}/UseVTK.cmake AND NOT EXISTS ${VTK_DIR}/VTKConfig.cmake)
|
||||||
set(VTK_FOUND 1)
|
set(VTK_FOUND 1)
|
||||||
include(UseVTKConfig40) # No VTKConfig; load VTK 4.0 settings.
|
include(${CMAKE_CURRENT_LIST_DIR}/UseVTKConfig40.cmake) # No VTKConfig; load VTK 4.0 settings.
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ if(_VTK_40_ALLOW AND NOT VTK_DIR)
|
||||||
if(VTK_DIR)
|
if(VTK_DIR)
|
||||||
if(EXISTS ${VTK_DIR}/UseVTK.cmake AND NOT EXISTS ${VTK_DIR}/VTKConfig.cmake)
|
if(EXISTS ${VTK_DIR}/UseVTK.cmake AND NOT EXISTS ${VTK_DIR}/VTKConfig.cmake)
|
||||||
set(VTK_FOUND 1)
|
set(VTK_FOUND 1)
|
||||||
include(UseVTKConfig40) # No VTKConfig; load VTK 4.0 settings.
|
include(${CMAKE_CURRENT_LIST_DIR}/UseVTKConfig40.cmake) # No VTKConfig; load VTK 4.0 settings.
|
||||||
else()
|
else()
|
||||||
# We found the wrong version. Pretend we did not find it.
|
# We found the wrong version. Pretend we did not find it.
|
||||||
set(VTK_DIR "VTK_DIR-NOTFOUND" CACHE PATH "The ${VTK_DIR_DESCRIPTION}" FORCE)
|
set(VTK_DIR "VTK_DIR-NOTFOUND" CACHE PATH "The ${VTK_DIR_DESCRIPTION}" FORCE)
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(FindCygwin)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
|
||||||
|
|
||||||
find_program(WGET_EXECUTABLE
|
find_program(WGET_EXECUTABLE
|
||||||
wget
|
wget
|
||||||
|
|
|
@ -336,8 +336,8 @@ if (UNIX)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if(X11_FOUND)
|
if(X11_FOUND)
|
||||||
include(CheckFunctionExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckFunctionExists.cmake)
|
||||||
include(CheckLibraryExists)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake)
|
||||||
|
|
||||||
# Translated from an autoconf-generated configure script.
|
# Translated from an autoconf-generated configure script.
|
||||||
# See libs.m4 in autoconf's m4 directory.
|
# See libs.m4 in autoconf's m4 directory.
|
||||||
|
@ -417,7 +417,7 @@ if (UNIX)
|
||||||
# Build the final list of libraries.
|
# Build the final list of libraries.
|
||||||
set(X11_LIBRARIES ${X11_X_PRE_LIBS} ${X11_LIBRARIES} ${X11_X_EXTRA_LIBS})
|
set(X11_LIBRARIES ${X11_X_PRE_LIBS} ${X11_LIBRARIES} ${X11_X_EXTRA_LIBS})
|
||||||
|
|
||||||
include(FindPackageMessage)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageMessage.cmake)
|
||||||
FIND_PACKAGE_MESSAGE(X11 "Found X11: ${X11_X11_LIB}"
|
FIND_PACKAGE_MESSAGE(X11 "Found X11: ${X11_X11_LIB}"
|
||||||
"[${X11_X11_LIB}][${X11_INCLUDE_DIR}]")
|
"[${X11_X11_LIB}][${X11_INCLUDE_DIR}]")
|
||||||
else ()
|
else ()
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgUtil/SceneView>
|
# #include <osgUtil/SceneView>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSG osg/PositionAttitudeTransform)
|
OSG_FIND_PATH (OSG osg/PositionAttitudeTransform)
|
||||||
OSG_FIND_LIBRARY(OSG osg)
|
OSG_FIND_LIBRARY(OSG osg)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgAnimation/Animation>
|
# #include <osgAnimation/Animation>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGANIMATION osgAnimation/Animation)
|
OSG_FIND_PATH (OSGANIMATION osgAnimation/Animation)
|
||||||
OSG_FIND_LIBRARY(OSGANIMATION osgAnimation)
|
OSG_FIND_LIBRARY(OSGANIMATION osgAnimation)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgDB/DatabasePager>
|
# #include <osgDB/DatabasePager>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGDB osgDB/DatabasePager)
|
OSG_FIND_PATH (OSGDB osgDB/DatabasePager)
|
||||||
OSG_FIND_LIBRARY(OSGDB osgDB)
|
OSG_FIND_LIBRARY(OSGDB osgDB)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgFX/BumpMapping>
|
# #include <osgFX/BumpMapping>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGFX osgFX/BumpMapping)
|
OSG_FIND_PATH (OSGFX osgFX/BumpMapping)
|
||||||
OSG_FIND_LIBRARY(OSGFX osgFX)
|
OSG_FIND_LIBRARY(OSGFX osgFX)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgGA/FlightManipulator>
|
# #include <osgGA/FlightManipulator>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGGA osgGA/FlightManipulator)
|
OSG_FIND_PATH (OSGGA osgGA/FlightManipulator)
|
||||||
OSG_FIND_LIBRARY(OSGGA osgGA)
|
OSG_FIND_LIBRARY(OSGGA osgGA)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgIntrospection/Reflection>
|
# #include <osgIntrospection/Reflection>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGINTROSPECTION osgIntrospection/Reflection)
|
OSG_FIND_PATH (OSGINTROSPECTION osgIntrospection/Reflection)
|
||||||
OSG_FIND_LIBRARY(OSGINTROSPECTION osgIntrospection)
|
OSG_FIND_LIBRARY(OSGINTROSPECTION osgIntrospection)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgManipulator/TrackballDragger>
|
# #include <osgManipulator/TrackballDragger>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGMANIPULATOR osgManipulator/TrackballDragger)
|
OSG_FIND_PATH (OSGMANIPULATOR osgManipulator/TrackballDragger)
|
||||||
OSG_FIND_LIBRARY(OSGMANIPULATOR osgManipulator)
|
OSG_FIND_LIBRARY(OSGMANIPULATOR osgManipulator)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgParticle/FireEffect>
|
# #include <osgParticle/FireEffect>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGPARTICLE osgParticle/FireEffect)
|
OSG_FIND_PATH (OSGPARTICLE osgParticle/FireEffect)
|
||||||
OSG_FIND_LIBRARY(OSGPARTICLE osgParticle)
|
OSG_FIND_LIBRARY(OSGPARTICLE osgParticle)
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgPresentation/SlideEventHandler>
|
# #include <osgPresentation/SlideEventHandler>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGPRESENTATION osgPresentation/SlideEventHandler)
|
OSG_FIND_PATH (OSGPRESENTATION osgPresentation/SlideEventHandler)
|
||||||
OSG_FIND_LIBRARY(OSGPRESENTATION osgPresentation)
|
OSG_FIND_LIBRARY(OSGPRESENTATION osgPresentation)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgProducer/OsgSceneHandler>
|
# #include <osgProducer/OsgSceneHandler>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGPRODUCER osgProducer/OsgSceneHandler)
|
OSG_FIND_PATH (OSGPRODUCER osgProducer/OsgSceneHandler)
|
||||||
OSG_FIND_LIBRARY(OSGPRODUCER osgProducer)
|
OSG_FIND_LIBRARY(OSGPRODUCER osgProducer)
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgQt/GraphicsWindowQt>
|
# #include <osgQt/GraphicsWindowQt>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGQT osgQt/GraphicsWindowQt)
|
OSG_FIND_PATH (OSGQT osgQt/GraphicsWindowQt)
|
||||||
OSG_FIND_LIBRARY(OSGQT osgQt)
|
OSG_FIND_LIBRARY(OSGQT osgQt)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgShadow/ShadowTexture>
|
# #include <osgShadow/ShadowTexture>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGSHADOW osgShadow/ShadowTexture)
|
OSG_FIND_PATH (OSGSHADOW osgShadow/ShadowTexture)
|
||||||
OSG_FIND_LIBRARY(OSGSHADOW osgShadow)
|
OSG_FIND_LIBRARY(OSGSHADOW osgShadow)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgSim/ImpostorSprite>
|
# #include <osgSim/ImpostorSprite>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGSIM osgSim/ImpostorSprite)
|
OSG_FIND_PATH (OSGSIM osgSim/ImpostorSprite)
|
||||||
OSG_FIND_LIBRARY(OSGSIM osgSim)
|
OSG_FIND_LIBRARY(OSGSIM osgSim)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgTerrain/Terrain>
|
# #include <osgTerrain/Terrain>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGTERRAIN osgTerrain/Terrain)
|
OSG_FIND_PATH (OSGTERRAIN osgTerrain/Terrain)
|
||||||
OSG_FIND_LIBRARY(OSGTERRAIN osgTerrain)
|
OSG_FIND_LIBRARY(OSGTERRAIN osgTerrain)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgText/Text>
|
# #include <osgText/Text>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGTEXT osgText/Text)
|
OSG_FIND_PATH (OSGTEXT osgText/Text)
|
||||||
OSG_FIND_LIBRARY(OSGTEXT osgText)
|
OSG_FIND_LIBRARY(OSGTEXT osgText)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgUtil/SceneView>
|
# #include <osgUtil/SceneView>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGUTIL osgUtil/SceneView)
|
OSG_FIND_PATH (OSGUTIL osgUtil/SceneView)
|
||||||
OSG_FIND_LIBRARY(OSGUTIL osgUtil)
|
OSG_FIND_LIBRARY(OSGUTIL osgUtil)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgViewer/Viewer>
|
# #include <osgViewer/Viewer>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGVIEWER osgViewer/Viewer)
|
OSG_FIND_PATH (OSGVIEWER osgViewer/Viewer)
|
||||||
OSG_FIND_LIBRARY(OSGVIEWER osgViewer)
|
OSG_FIND_LIBRARY(OSGVIEWER osgViewer)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgVolume/Volume>
|
# #include <osgVolume/Volume>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGVOLUME osgVolume/Volume)
|
OSG_FIND_PATH (OSGVOLUME osgVolume/Volume)
|
||||||
OSG_FIND_LIBRARY(OSGVOLUME osgVolume)
|
OSG_FIND_LIBRARY(OSGVOLUME osgVolume)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
# #include <osg/PositionAttitudeTransform>
|
# #include <osg/PositionAttitudeTransform>
|
||||||
# #include <osgWidget/Widget>
|
# #include <osgWidget/Widget>
|
||||||
|
|
||||||
include(Findosg_functions)
|
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
|
||||||
OSG_FIND_PATH (OSGWIDGET osgWidget/Widget)
|
OSG_FIND_PATH (OSGWIDGET osgWidget/Widget)
|
||||||
OSG_FIND_LIBRARY(OSGWIDGET osgWidget)
|
OSG_FIND_LIBRARY(OSGWIDGET osgWidget)
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
# HAVE_ISYSTEM - true required to replace -I by -isystem on g++
|
# HAVE_ISYSTEM - true required to replace -I by -isystem on g++
|
||||||
#
|
#
|
||||||
# For convenience include Use_wxWindows.cmake in your project's
|
# For convenience include Use_wxWindows.cmake in your project's
|
||||||
# CMakeLists.txt using include(Use_wxWindows).
|
# CMakeLists.txt using include(${CMAKE_CURRENT_LIST_DIR}/Use_wxWindows.cmake).
|
||||||
#
|
#
|
||||||
# USAGE
|
# USAGE
|
||||||
# set(WXWINDOWS_USE_GL 1)
|
# set(WXWINDOWS_USE_GL 1)
|
||||||
|
|
|
@ -107,6 +107,7 @@ elseif(NOT "x$ENV{SDKROOT}" STREQUAL "x" AND
|
||||||
# Use the value of SDKROOT from the environment.
|
# Use the value of SDKROOT from the environment.
|
||||||
set(_CMAKE_OSX_SYSROOT_DEFAULT "$ENV{SDKROOT}")
|
set(_CMAKE_OSX_SYSROOT_DEFAULT "$ENV{SDKROOT}")
|
||||||
elseif("${CMAKE_GENERATOR}" MATCHES Xcode
|
elseif("${CMAKE_GENERATOR}" MATCHES Xcode
|
||||||
|
OR CMAKE_OSX_DEPLOYMENT_TARGET
|
||||||
OR CMAKE_OSX_ARCHITECTURES MATCHES "[^;]"
|
OR CMAKE_OSX_ARCHITECTURES MATCHES "[^;]"
|
||||||
OR NOT EXISTS "/usr/include/sys/types.h")
|
OR NOT EXISTS "/usr/include/sys/types.h")
|
||||||
# Find installed SDKs in either Xcode-4.3+ or pre-4.3 SDKs directory.
|
# Find installed SDKs in either Xcode-4.3+ or pre-4.3 SDKs directory.
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
set SQUISHSERVER=%1
|
||||||
|
set SQUISHRUNNER=%2
|
||||||
|
set TESTSUITE=%3
|
||||||
|
set TESTCASE=%4
|
||||||
|
set AUT=%5
|
||||||
|
set AUTDIR=%6
|
||||||
|
set SETTINGSGROUP=%7
|
||||||
|
|
||||||
|
%SQUISHSERVER% --stop
|
||||||
|
|
||||||
|
echo "Adding AUT... %SQUISHSERVER% --config addAUT %AUT% %AUTDIR%"
|
||||||
|
%SQUISHSERVER% --config addAUT "%AUT%" "%AUTDIR%"
|
||||||
|
|
||||||
|
echo "Starting the squish server... %SQUISHSERVER%"
|
||||||
|
start /B %SQUISHSERVER%
|
||||||
|
|
||||||
|
echo "Running the test case...%SQUISHRUNNER% --testsuite %TESTSUITE% --testcase %TESTCASE%"
|
||||||
|
%SQUISHRUNNER% --testsuite "%TESTSUITE%" --testcase "%TESTCASE%"
|
||||||
|
set returnValue=%ERRORLEVEL%
|
||||||
|
|
||||||
|
echo "Stopping the squish server... %SQUISHSERVER% --stop"
|
||||||
|
%SQUISHSERVER% --stop
|
||||||
|
|
||||||
|
exit /B %returnValue%
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SQUISHSERVER=$1
|
||||||
|
SQUISHRUNNER=$2
|
||||||
|
TESTSUITE=$3
|
||||||
|
TESTCASE=$4
|
||||||
|
AUT=$5
|
||||||
|
AUTDIR=$6
|
||||||
|
SETTINGSGROUP=$7
|
||||||
|
|
||||||
|
$SQUISHSERVER --stop > /dev/null 2>&1
|
||||||
|
|
||||||
|
echo "Adding AUT... $SQUISHSERVER --settingsGroup $SETTINGSGROUP --config addAUT $AUT $AUTDIR"
|
||||||
|
$SQUISHSERVER --settingsGroup "$SETTINGSGROUP" --config addAUT "$AUT" "$AUTDIR" || exit -1
|
||||||
|
# sleep 1
|
||||||
|
|
||||||
|
echo "Starting the squish server... $SQUISHSERVER --daemon"
|
||||||
|
$SQUISHSERVER --daemon || exit -1
|
||||||
|
# sleep 2
|
||||||
|
|
||||||
|
echo "Running the test case...$SQUISHRUNNER --settingsGroup $SETTINGSGROUP --testsuite $TESTSUITE --testcase $TESTCASE"
|
||||||
|
$SQUISHRUNNER --settingsGroup "$SETTINGSGROUP" --testsuite "$TESTSUITE" --testcase "$TESTCASE"
|
||||||
|
returnValue=$?
|
||||||
|
|
||||||
|
echo "Stopping the squish server... $SQUISHSERVER --stop"
|
||||||
|
$SQUISHSERVER --stop
|
||||||
|
|
||||||
|
exit $returnValue
|
|
@ -22,17 +22,22 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
|
|
||||||
|
|
||||||
# print out the variable that we are using
|
# print out the variable that we are using
|
||||||
message(STATUS "squish_aut='${squish_aut}'")
|
message(STATUS "squish_aut='${squish_aut}'")
|
||||||
|
message(STATUS "squish_aut_dir='${squish_aut_dir}'")
|
||||||
|
|
||||||
|
message(STATUS "squish_version='${squish_version}'")
|
||||||
message(STATUS "squish_server_executable='${squish_server_executable}'")
|
message(STATUS "squish_server_executable='${squish_server_executable}'")
|
||||||
message(STATUS "squish_client_executable='${squish_client_executable}'")
|
message(STATUS "squish_client_executable='${squish_client_executable}'")
|
||||||
message(STATUS "squish_libqtdir ='${squish_libqtdir}'")
|
message(STATUS "squish_libqtdir ='${squish_libqtdir}'")
|
||||||
|
message(STATUS "squish_test_suite='${squish_test_suite}'")
|
||||||
message(STATUS "squish_test_case='${squish_test_case}'")
|
message(STATUS "squish_test_case='${squish_test_case}'")
|
||||||
message(STATUS "squish_wrapper='${squish_wrapper}'")
|
message(STATUS "squish_wrapper='${squish_wrapper}'")
|
||||||
message(STATUS "squish_env_vars='${squish_env_vars}'")
|
message(STATUS "squish_env_vars='${squish_env_vars}'")
|
||||||
|
message(STATUS "squish_module_dir='${squish_module_dir}'")
|
||||||
|
message(STATUS "squish_settingsgroup='${squish_settingsgroup}'")
|
||||||
|
message(STATUS "squish_pre_command='${squish_pre_command}'")
|
||||||
|
message(STATUS "squish_post_command='${squish_post_command}'")
|
||||||
|
|
||||||
# parse enviornment variables
|
# parse enviornment variables
|
||||||
foreach(i ${squish_env_vars})
|
foreach(i ${squish_env_vars})
|
||||||
|
@ -48,25 +53,38 @@ if (QT4_INSTALLED)
|
||||||
set ( ENV{${SQUISH_LIBQTDIR}} ${squish_libqtdir} )
|
set ( ENV{${SQUISH_LIBQTDIR}} ${squish_libqtdir} )
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# run the test
|
if(squish_pre_command)
|
||||||
if (WIN32)
|
message(STATUS "Executing pre command: ${squish_pre_command}")
|
||||||
execute_process(
|
execute_process(COMMAND "${squish_pre_command}")
|
||||||
COMMAND ${CMAKE_ROOT}/Modules/SquishRunTestCase.bat ${squish_server_executable} ${squish_client_executable} ${squish_test_case} ${squish_wrapper} ${squish_aut}
|
endif()
|
||||||
RESULT_VARIABLE test_rv
|
|
||||||
)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (UNIX)
|
# run the test
|
||||||
execute_process(
|
if("${squish_version}" STREQUAL "4")
|
||||||
COMMAND ${CMAKE_ROOT}/Modules/SquishRunTestCase.sh ${squish_server_executable} ${squish_client_executable} ${squish_test_case} ${squish_wrapper} ${squish_aut}
|
if (WIN32)
|
||||||
RESULT_VARIABLE test_rv
|
execute_process(COMMAND ${squish_module_dir}/Squish4RunTestCase.bat ${squish_server_executable} ${squish_client_executable} ${squish_test_suite} ${squish_test_case} ${squish_aut} ${squish_aut_dir} ${squish_settingsgroup}
|
||||||
)
|
RESULT_VARIABLE test_rv )
|
||||||
endif ()
|
elseif(UNIX)
|
||||||
|
execute_process(COMMAND ${squish_module_dir}/Squish4RunTestCase.sh ${squish_server_executable} ${squish_client_executable} ${squish_test_suite} ${squish_test_case} ${squish_aut} ${squish_aut_dir} ${squish_settingsgroup}
|
||||||
|
RESULT_VARIABLE test_rv )
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
else()
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
execute_process(COMMAND ${squish_module_dir}/SquishRunTestCase.bat ${squish_server_executable} ${squish_client_executable} ${squish_test_case} ${squish_wrapper} ${squish_aut}
|
||||||
|
RESULT_VARIABLE test_rv )
|
||||||
|
elseif(UNIX)
|
||||||
|
execute_process(COMMAND ${squish_module_dir}/SquishRunTestCase.sh ${squish_server_executable} ${squish_client_executable} ${squish_test_case} ${squish_wrapper} ${squish_aut}
|
||||||
|
RESULT_VARIABLE test_rv )
|
||||||
|
endif ()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(squish_post_command)
|
||||||
|
message(STATUS "Executing post command: ${squish_post_command}")
|
||||||
|
execute_process(COMMAND "${squish_post_command}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# check for an error with running the test
|
# check for an error with running the test
|
||||||
if(NOT "${test_rv}" STREQUAL "0")
|
if(NOT "${test_rv}" STREQUAL "0")
|
||||||
message(FATAL_ERROR "Error running Squish test")
|
message(FATAL_ERROR "Error running Squish test")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
include(CheckIncludeFileCXX)
|
include(${CMAKE_CURRENT_LIST_DIR}/CheckIncludeFileCXX.cmake)
|
||||||
|
|
||||||
if(NOT CMAKE_NO_ANSI_STREAM_HEADERS)
|
if(NOT CMAKE_NO_ANSI_STREAM_HEADERS)
|
||||||
CHECK_INCLUDE_FILE_CXX(iostream CMAKE_ANSI_STREAM_HEADERS)
|
CHECK_INCLUDE_FILE_CXX(iostream CMAKE_ANSI_STREAM_HEADERS)
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
set(CMake_VERSION_MAJOR 2)
|
set(CMake_VERSION_MAJOR 2)
|
||||||
set(CMake_VERSION_MINOR 8)
|
set(CMake_VERSION_MINOR 8)
|
||||||
set(CMake_VERSION_PATCH 10)
|
set(CMake_VERSION_PATCH 10)
|
||||||
set(CMake_VERSION_TWEAK 20121104)
|
set(CMake_VERSION_TWEAK 20121111)
|
||||||
#set(CMake_VERSION_RC 1)
|
#set(CMake_VERSION_RC 1)
|
||||||
|
|
|
@ -76,6 +76,11 @@ int cmCPackDebGenerator::PackageOnePack(std::string initialTopLevel,
|
||||||
packageFileName.c_str());
|
packageFileName.c_str());
|
||||||
// Tell CPackDeb.cmake the name of the component GROUP.
|
// Tell CPackDeb.cmake the name of the component GROUP.
|
||||||
this->SetOption("CPACK_DEB_PACKAGE_COMPONENT",packageName.c_str());
|
this->SetOption("CPACK_DEB_PACKAGE_COMPONENT",packageName.c_str());
|
||||||
|
// Tell CPackDeb.cmake the path where the component is.
|
||||||
|
std::string component_path = "/";
|
||||||
|
component_path += packageName;
|
||||||
|
this->SetOption("CPACK_DEB_PACKAGE_COMPONENT_PART_PATH",
|
||||||
|
component_path.c_str());
|
||||||
if (!this->ReadListFile("CPackDeb.cmake"))
|
if (!this->ReadListFile("CPackDeb.cmake"))
|
||||||
{
|
{
|
||||||
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
||||||
|
@ -198,8 +203,11 @@ int cmCPackDebGenerator::PackageComponentsAllInOne()
|
||||||
/* replace the TEMPORARY package file name */
|
/* replace the TEMPORARY package file name */
|
||||||
this->SetOption("CPACK_TEMPORARY_PACKAGE_FILE_NAME",
|
this->SetOption("CPACK_TEMPORARY_PACKAGE_FILE_NAME",
|
||||||
packageFileName.c_str());
|
packageFileName.c_str());
|
||||||
// Tell CPackDeb.cmake the name of the component GROUP.
|
// Tell CPackDeb.cmake the path where the component is.
|
||||||
this->SetOption("CPACK_DEB_PACKAGE_COMPONENT",compInstDirName.c_str());
|
std::string component_path = "/";
|
||||||
|
component_path += compInstDirName;
|
||||||
|
this->SetOption("CPACK_DEB_PACKAGE_COMPONENT_PART_PATH",
|
||||||
|
component_path.c_str());
|
||||||
if (!this->ReadListFile("CPackDeb.cmake"))
|
if (!this->ReadListFile("CPackDeb.cmake"))
|
||||||
{
|
{
|
||||||
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
||||||
|
|
|
@ -77,6 +77,11 @@ int cmCPackRPMGenerator::PackageOnePack(std::string initialToplevel,
|
||||||
packageFileName.c_str());
|
packageFileName.c_str());
|
||||||
// Tell CPackRPM.cmake the name of the component NAME.
|
// Tell CPackRPM.cmake the name of the component NAME.
|
||||||
this->SetOption("CPACK_RPM_PACKAGE_COMPONENT",packageName.c_str());
|
this->SetOption("CPACK_RPM_PACKAGE_COMPONENT",packageName.c_str());
|
||||||
|
// Tell CPackRPM.cmake the path where the component is.
|
||||||
|
std::string component_path = "/";
|
||||||
|
component_path += packageName;
|
||||||
|
this->SetOption("CPACK_RPM_PACKAGE_COMPONENT_PART_PATH",
|
||||||
|
component_path.c_str());
|
||||||
if (!this->ReadListFile("CPackRPM.cmake"))
|
if (!this->ReadListFile("CPackRPM.cmake"))
|
||||||
{
|
{
|
||||||
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
||||||
|
@ -178,8 +183,11 @@ int cmCPackRPMGenerator::PackageComponentsAllInOne()
|
||||||
/* replace the TEMPORARY package file name */
|
/* replace the TEMPORARY package file name */
|
||||||
this->SetOption("CPACK_TEMPORARY_PACKAGE_FILE_NAME",
|
this->SetOption("CPACK_TEMPORARY_PACKAGE_FILE_NAME",
|
||||||
packageFileName.c_str());
|
packageFileName.c_str());
|
||||||
// Tell CPackRPM.cmake the name of the component GROUP.
|
// Tell CPackRPM.cmake the path where the component is.
|
||||||
this->SetOption("CPACK_RPM_PACKAGE_COMPONENT",compInstDirName.c_str());
|
std::string component_path = "/";
|
||||||
|
component_path += compInstDirName;
|
||||||
|
this->SetOption("CPACK_RPM_PACKAGE_COMPONENT_PART_PATH",
|
||||||
|
component_path.c_str());
|
||||||
if (!this->ReadListFile("CPackRPM.cmake"))
|
if (!this->ReadListFile("CPackRPM.cmake"))
|
||||||
{
|
{
|
||||||
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
||||||
|
|
|
@ -121,7 +121,7 @@ bool cmCTestHandlerCommand
|
||||||
}
|
}
|
||||||
if ( this->Values[ct_SUBMIT_INDEX] )
|
if ( this->Values[ct_SUBMIT_INDEX] )
|
||||||
{
|
{
|
||||||
if ( this->CTest->GetDartVersion() <= 1 )
|
if(!this->CTest->GetDropSiteCDash() && this->CTest->GetDartVersion() <= 1)
|
||||||
{
|
{
|
||||||
cmCTestLog(this->CTest, ERROR_MESSAGE,
|
cmCTestLog(this->CTest, ERROR_MESSAGE,
|
||||||
"Dart before version 2.0 does not support collecting submissions."
|
"Dart before version 2.0 does not support collecting submissions."
|
||||||
|
|
|
@ -68,7 +68,8 @@ public:
|
||||||
" [COMMAND command2 [ARGS] [args2...] ...]\n"
|
" [COMMAND command2 [ARGS] [args2...] ...]\n"
|
||||||
" [MAIN_DEPENDENCY depend]\n"
|
" [MAIN_DEPENDENCY depend]\n"
|
||||||
" [DEPENDS [depends...]]\n"
|
" [DEPENDS [depends...]]\n"
|
||||||
" [IMPLICIT_DEPENDS <lang1> depend1 ...]\n"
|
" [IMPLICIT_DEPENDS <lang1> depend1\n"
|
||||||
|
" [<lang2> depend2] ...]\n"
|
||||||
" [WORKING_DIRECTORY dir]\n"
|
" [WORKING_DIRECTORY dir]\n"
|
||||||
" [COMMENT comment] [VERBATIM] [APPEND])\n"
|
" [COMMENT comment] [VERBATIM] [APPEND])\n"
|
||||||
"This defines a command to generate specified OUTPUT file(s). "
|
"This defines a command to generate specified OUTPUT file(s). "
|
||||||
|
@ -142,6 +143,8 @@ public:
|
||||||
"dependencies of an input file. The language given specifies the "
|
"dependencies of an input file. The language given specifies the "
|
||||||
"programming language whose corresponding dependency scanner should "
|
"programming language whose corresponding dependency scanner should "
|
||||||
"be used. Currently only C and CXX language scanners are supported. "
|
"be used. Currently only C and CXX language scanners are supported. "
|
||||||
|
"The language has to be specified for every file in the "
|
||||||
|
"IMPLICIT_DEPENDS list. "
|
||||||
"Dependencies discovered from the scanning are added to those of "
|
"Dependencies discovered from the scanning are added to those of "
|
||||||
"the custom command at build time. Note that the IMPLICIT_DEPENDS "
|
"the custom command at build time. Note that the IMPLICIT_DEPENDS "
|
||||||
"option is currently supported only for Makefile generators and "
|
"option is currently supported only for Makefile generators and "
|
||||||
|
|
|
@ -327,6 +327,7 @@ cmCTest::cmCTest()
|
||||||
this->OutputLogFileLastTag = -1;
|
this->OutputLogFileLastTag = -1;
|
||||||
this->SuppressUpdatingCTestConfiguration = false;
|
this->SuppressUpdatingCTestConfiguration = false;
|
||||||
this->DartVersion = 1;
|
this->DartVersion = 1;
|
||||||
|
this->DropSiteCDash = false;
|
||||||
this->OutputTestOutputOnTestFailure = false;
|
this->OutputTestOutputOnTestFailure = false;
|
||||||
this->ComputedCompressTestOutput = false;
|
this->ComputedCompressTestOutput = false;
|
||||||
this->ComputedCompressMemCheckOutput = false;
|
this->ComputedCompressMemCheckOutput = false;
|
||||||
|
@ -653,6 +654,7 @@ bool cmCTest::InitializeFromCommand(cmCTestStartCommand* command)
|
||||||
= this->GetCTestConfiguration("SourceDirectory").c_str();
|
= this->GetCTestConfiguration("SourceDirectory").c_str();
|
||||||
std::string bld_dir = this->GetCTestConfiguration("BuildDirectory").c_str();
|
std::string bld_dir = this->GetCTestConfiguration("BuildDirectory").c_str();
|
||||||
this->DartVersion = 1;
|
this->DartVersion = 1;
|
||||||
|
this->DropSiteCDash = false;
|
||||||
for(Part p = PartStart; p != PartCount; p = Part(p+1))
|
for(Part p = PartStart; p != PartCount; p = Part(p+1))
|
||||||
{
|
{
|
||||||
this->Parts[p].SubmitFiles.clear();
|
this->Parts[p].SubmitFiles.clear();
|
||||||
|
@ -719,6 +721,7 @@ bool cmCTest::InitializeFromCommand(cmCTestStartCommand* command)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->DropSiteCDash = mf->IsOn("CTEST_DROP_SITE_CDASH");
|
||||||
|
|
||||||
if ( !this->Initialize(bld_dir.c_str(), command) )
|
if ( !this->Initialize(bld_dir.c_str(), command) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -384,6 +384,7 @@ public:
|
||||||
|
|
||||||
//! Get the version of dart server
|
//! Get the version of dart server
|
||||||
int GetDartVersion() { return this->DartVersion; }
|
int GetDartVersion() { return this->DartVersion; }
|
||||||
|
int GetDropSiteCDash() { return this->DropSiteCDash; }
|
||||||
|
|
||||||
//! Add file to be submitted
|
//! Add file to be submitted
|
||||||
void AddSubmitFile(Part part, const char* name);
|
void AddSubmitFile(Part part, const char* name);
|
||||||
|
@ -561,6 +562,7 @@ private:
|
||||||
bool Quiet;
|
bool Quiet;
|
||||||
|
|
||||||
int DartVersion;
|
int DartVersion;
|
||||||
|
bool DropSiteCDash;
|
||||||
|
|
||||||
std::vector<cmStdString> InitialCommandLineArguments;
|
std::vector<cmStdString> InitialCommandLineArguments;
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ bool cmDepends::Write(std::ostream &makeDepends,
|
||||||
std::vector<std::string> pairs;
|
std::vector<std::string> pairs;
|
||||||
cmSystemTools::ExpandListArgument(srcStr, pairs);
|
cmSystemTools::ExpandListArgument(srcStr, pairs);
|
||||||
|
|
||||||
|
std::map<std::string, std::set<std::string> > dependencies;
|
||||||
for(std::vector<std::string>::iterator si = pairs.begin();
|
for(std::vector<std::string>::iterator si = pairs.begin();
|
||||||
si != pairs.end();)
|
si != pairs.end();)
|
||||||
{
|
{
|
||||||
|
@ -62,9 +63,14 @@ bool cmDepends::Write(std::ostream &makeDepends,
|
||||||
obj = this->LocalGenerator->Convert(obj.c_str(),
|
obj = this->LocalGenerator->Convert(obj.c_str(),
|
||||||
cmLocalGenerator::HOME_OUTPUT,
|
cmLocalGenerator::HOME_OUTPUT,
|
||||||
cmLocalGenerator::MAKEFILE);
|
cmLocalGenerator::MAKEFILE);
|
||||||
|
dependencies[obj].insert(src);
|
||||||
|
}
|
||||||
|
for(std::map<std::string, std::set<std::string> >::const_iterator
|
||||||
|
it = dependencies.begin(); it != dependencies.end(); ++it)
|
||||||
|
{
|
||||||
|
|
||||||
// Write the dependencies for this pair.
|
// Write the dependencies for this pair.
|
||||||
if(!this->WriteDependencies(src.c_str(), obj.c_str(),
|
if(!this->WriteDependencies(it->second, it->first,
|
||||||
makeDepends, internalDepends))
|
makeDepends, internalDepends))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -134,8 +140,9 @@ void cmDepends::Clear(const char *file)
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmDepends::WriteDependencies(const char*, const char*,
|
bool cmDepends::WriteDependencies(
|
||||||
std::ostream&, std::ostream&)
|
const std::set<std::string>&, const std::string&,
|
||||||
|
std::ostream&, std::ostream&)
|
||||||
{
|
{
|
||||||
// This should be implemented by the subclass.
|
// This should be implemented by the subclass.
|
||||||
return false;
|
return false;
|
||||||
|
@ -174,8 +181,10 @@ bool cmDepends::CheckDependencies(std::istream& internalDepends,
|
||||||
// kdelibs/khtml this reduces the number of calls from 184k down to 92k,
|
// kdelibs/khtml this reduces the number of calls from 184k down to 92k,
|
||||||
// or the time for cmake -E cmake_depends from 0.3 s down to 0.21 s.
|
// or the time for cmake -E cmake_depends from 0.3 s down to 0.21 s.
|
||||||
dependerExists = cmSystemTools::FileExists(this->Depender);
|
dependerExists = cmSystemTools::FileExists(this->Depender);
|
||||||
DependencyVector tmp;
|
// If we erase validDeps[this->Depender] by overwriting it with an empty
|
||||||
validDeps[this->Depender] = tmp;
|
// vector, we lose dependencies for dependers that have multiple
|
||||||
|
// entries. No need to initialize the entry, std::map will do so on first
|
||||||
|
// access.
|
||||||
currentDependencies = &validDeps[this->Depender];
|
currentDependencies = &validDeps[this->Depender];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,8 +76,10 @@ protected:
|
||||||
|
|
||||||
// Write dependencies for the target file to the given stream.
|
// Write dependencies for the target file to the given stream.
|
||||||
// Return true for success and false for failure.
|
// Return true for success and false for failure.
|
||||||
virtual bool WriteDependencies(const char *src, const char* obj,
|
virtual bool WriteDependencies(const std::set<std::string>& sources,
|
||||||
std::ostream& makeDepends, std::ostream& internalDepends);
|
const std::string& obj,
|
||||||
|
std::ostream& makeDepends,
|
||||||
|
std::ostream& internalDepends);
|
||||||
|
|
||||||
// Check dependencies for the target file in the given stream.
|
// Check dependencies for the target file in the given stream.
|
||||||
// Return false if dependencies must be regenerated and true
|
// Return false if dependencies must be regenerated and true
|
||||||
|
|
|
@ -98,176 +98,179 @@ cmDependsC::~cmDependsC()
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmDependsC::WriteDependencies(const char *src, const char *obj,
|
bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
|
||||||
std::ostream& makeDepends, std::ostream& internalDepends)
|
const std::string& obj,
|
||||||
|
std::ostream& makeDepends,
|
||||||
|
std::ostream& internalDepends)
|
||||||
{
|
{
|
||||||
// Make sure this is a scanning instance.
|
// Make sure this is a scanning instance.
|
||||||
if(!src || src[0] == '\0')
|
if(sources.empty() || sources.begin()->empty())
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Cannot scan dependencies without a source file.");
|
cmSystemTools::Error("Cannot scan dependencies without a source file.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!obj || obj[0] == '\0')
|
if(obj.empty())
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Cannot scan dependencies without an object file.");
|
cmSystemTools::Error("Cannot scan dependencies without an object file.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::set<cmStdString> dependencies;
|
||||||
|
bool haveDeps = false;
|
||||||
|
|
||||||
if (this->ValidDeps != 0)
|
if (this->ValidDeps != 0)
|
||||||
{
|
{
|
||||||
std::map<std::string, DependencyVector>::const_iterator tmpIt =
|
std::map<std::string, DependencyVector>::const_iterator tmpIt =
|
||||||
this->ValidDeps->find(obj);
|
this->ValidDeps->find(obj);
|
||||||
if (tmpIt!= this->ValidDeps->end())
|
if (tmpIt!= this->ValidDeps->end())
|
||||||
{
|
{
|
||||||
// Write the dependencies to the output stream. Makefile rules
|
|
||||||
// written by the original local generator for this directory
|
|
||||||
// convert the dependencies to paths relative to the home output
|
|
||||||
// directory. We must do the same here.
|
|
||||||
internalDepends << obj << std::endl;
|
|
||||||
for(DependencyVector::const_iterator i=tmpIt->second.begin();
|
for(DependencyVector::const_iterator i=tmpIt->second.begin();
|
||||||
i != tmpIt->second.end(); ++i)
|
i != tmpIt->second.end(); ++i)
|
||||||
{
|
{
|
||||||
makeDepends << obj << ": " <<
|
dependencies.insert(*i);
|
||||||
this->LocalGenerator->Convert(i->c_str(),
|
|
||||||
cmLocalGenerator::HOME_OUTPUT,
|
|
||||||
cmLocalGenerator::MAKEFILE)
|
|
||||||
<< std::endl;
|
|
||||||
internalDepends << " " << i->c_str() << std::endl;
|
|
||||||
}
|
}
|
||||||
makeDepends << std::endl;
|
haveDeps = true;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Walk the dependency graph starting with the source file.
|
if (!haveDeps)
|
||||||
bool first = true;
|
|
||||||
UnscannedEntry root;
|
|
||||||
root.FileName = src;
|
|
||||||
this->Unscanned.push(root);
|
|
||||||
this->Encountered.clear();
|
|
||||||
this->Encountered.insert(src);
|
|
||||||
std::set<cmStdString> dependencies;
|
|
||||||
std::set<cmStdString> scanned;
|
|
||||||
|
|
||||||
// Use reserve to allocate enough memory for tempPathStr
|
|
||||||
// so that during the loops no memory is allocated or freed
|
|
||||||
std::string tempPathStr;
|
|
||||||
tempPathStr.reserve(4*1024);
|
|
||||||
|
|
||||||
while(!this->Unscanned.empty())
|
|
||||||
{
|
{
|
||||||
// Get the next file to scan.
|
// Walk the dependency graph starting with the source file.
|
||||||
UnscannedEntry current = this->Unscanned.front();
|
int srcFiles = (int)sources.size();
|
||||||
this->Unscanned.pop();
|
this->Encountered.clear();
|
||||||
|
|
||||||
// If not a full path, find the file in the include path.
|
for(std::set<std::string>::const_iterator srcIt = sources.begin();
|
||||||
std::string fullName;
|
srcIt != sources.end(); ++srcIt)
|
||||||
if(first || cmSystemTools::FileIsFullPath(current.FileName.c_str()))
|
|
||||||
{
|
{
|
||||||
if(cmSystemTools::FileExists(current.FileName.c_str(), true))
|
UnscannedEntry root;
|
||||||
{
|
root.FileName = *srcIt;
|
||||||
fullName = current.FileName;
|
this->Unscanned.push(root);
|
||||||
}
|
this->Encountered.insert(*srcIt);
|
||||||
}
|
}
|
||||||
else if(!current.QuotedLocation.empty() &&
|
|
||||||
cmSystemTools::FileExists(current.QuotedLocation.c_str(), true))
|
|
||||||
{
|
|
||||||
// The include statement producing this entry was a double-quote
|
|
||||||
// include and the included file is present in the directory of
|
|
||||||
// the source containing the include statement.
|
|
||||||
fullName = current.QuotedLocation;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
std::map<cmStdString, cmStdString>::iterator
|
|
||||||
headerLocationIt=this->HeaderLocationCache.find(current.FileName);
|
|
||||||
if (headerLocationIt!=this->HeaderLocationCache.end())
|
|
||||||
{
|
|
||||||
fullName=headerLocationIt->second;
|
|
||||||
}
|
|
||||||
else for(std::vector<std::string>::const_iterator i =
|
|
||||||
this->IncludePath.begin(); i != this->IncludePath.end(); ++i)
|
|
||||||
{
|
|
||||||
// Construct the name of the file as if it were in the current
|
|
||||||
// include directory. Avoid using a leading "./".
|
|
||||||
|
|
||||||
tempPathStr = "";
|
std::set<cmStdString> scanned;
|
||||||
if((*i) == ".")
|
|
||||||
{
|
|
||||||
tempPathStr += current.FileName;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
tempPathStr += *i;
|
|
||||||
tempPathStr+="/";
|
|
||||||
tempPathStr+=current.FileName;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Look for the file in this location.
|
// Use reserve to allocate enough memory for tempPathStr
|
||||||
if(cmSystemTools::FileExists(tempPathStr.c_str(), true))
|
// so that during the loops no memory is allocated or freed
|
||||||
|
std::string tempPathStr;
|
||||||
|
tempPathStr.reserve(4*1024);
|
||||||
|
|
||||||
|
while(!this->Unscanned.empty())
|
||||||
|
{
|
||||||
|
// Get the next file to scan.
|
||||||
|
UnscannedEntry current = this->Unscanned.front();
|
||||||
|
this->Unscanned.pop();
|
||||||
|
|
||||||
|
// If not a full path, find the file in the include path.
|
||||||
|
std::string fullName;
|
||||||
|
if((srcFiles>0)
|
||||||
|
|| cmSystemTools::FileIsFullPath(current.FileName.c_str()))
|
||||||
|
{
|
||||||
|
if(cmSystemTools::FileExists(current.FileName.c_str(), true))
|
||||||
{
|
{
|
||||||
fullName = tempPathStr;
|
fullName = current.FileName;
|
||||||
HeaderLocationCache[current.FileName]=fullName;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else if(!current.QuotedLocation.empty() &&
|
||||||
|
cmSystemTools::FileExists(current.QuotedLocation.c_str(), true))
|
||||||
// Complain if the file cannot be found and matches the complain
|
|
||||||
// regex.
|
|
||||||
if(fullName.empty() &&
|
|
||||||
this->IncludeRegexComplain.find(current.FileName.c_str()))
|
|
||||||
{
|
|
||||||
cmSystemTools::Error("Cannot find file \"",
|
|
||||||
current.FileName.c_str(), "\".");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Scan the file if it was found and has not been scanned already.
|
|
||||||
if(!fullName.empty() && (scanned.find(fullName) == scanned.end()))
|
|
||||||
{
|
|
||||||
// Record scanned files.
|
|
||||||
scanned.insert(fullName);
|
|
||||||
|
|
||||||
// Check whether this file is already in the cache
|
|
||||||
std::map<cmStdString, cmIncludeLines*>::iterator fileIt=
|
|
||||||
this->FileCache.find(fullName);
|
|
||||||
if (fileIt!=this->FileCache.end())
|
|
||||||
{
|
{
|
||||||
fileIt->second->Used=true;
|
// The include statement producing this entry was a double-quote
|
||||||
dependencies.insert(fullName);
|
// include and the included file is present in the directory of
|
||||||
for (std::vector<UnscannedEntry>::const_iterator incIt=
|
// the source containing the include statement.
|
||||||
fileIt->second->UnscannedEntries.begin();
|
fullName = current.QuotedLocation;
|
||||||
incIt!=fileIt->second->UnscannedEntries.end(); ++incIt)
|
|
||||||
{
|
|
||||||
if (this->Encountered.find(incIt->FileName) ==
|
|
||||||
this->Encountered.end())
|
|
||||||
{
|
|
||||||
this->Encountered.insert(incIt->FileName);
|
|
||||||
this->Unscanned.push(*incIt);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
std::map<cmStdString, cmStdString>::iterator
|
||||||
// Try to scan the file. Just leave it out if we cannot find
|
headerLocationIt=this->HeaderLocationCache.find(current.FileName);
|
||||||
// it.
|
if (headerLocationIt!=this->HeaderLocationCache.end())
|
||||||
std::ifstream fin(fullName.c_str());
|
|
||||||
if(fin)
|
|
||||||
{
|
{
|
||||||
// Add this file as a dependency.
|
fullName=headerLocationIt->second;
|
||||||
dependencies.insert(fullName);
|
}
|
||||||
|
else for(std::vector<std::string>::const_iterator i =
|
||||||
|
this->IncludePath.begin(); i != this->IncludePath.end(); ++i)
|
||||||
|
{
|
||||||
|
// Construct the name of the file as if it were in the current
|
||||||
|
// include directory. Avoid using a leading "./".
|
||||||
|
|
||||||
// Scan this file for new dependencies. Pass the directory
|
tempPathStr = "";
|
||||||
// containing the file to handle double-quote includes.
|
if((*i) == ".")
|
||||||
std::string dir = cmSystemTools::GetFilenamePath(fullName);
|
{
|
||||||
this->Scan(fin, dir.c_str(), fullName);
|
tempPathStr += current.FileName;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tempPathStr += *i;
|
||||||
|
tempPathStr+="/";
|
||||||
|
tempPathStr+=current.FileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Look for the file in this location.
|
||||||
|
if(cmSystemTools::FileExists(tempPathStr.c_str(), true))
|
||||||
|
{
|
||||||
|
fullName = tempPathStr;
|
||||||
|
HeaderLocationCache[current.FileName]=fullName;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
first = false;
|
// Complain if the file cannot be found and matches the complain
|
||||||
|
// regex.
|
||||||
|
if(fullName.empty() &&
|
||||||
|
this->IncludeRegexComplain.find(current.FileName.c_str()))
|
||||||
|
{
|
||||||
|
cmSystemTools::Error("Cannot find file \"",
|
||||||
|
current.FileName.c_str(), "\".");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Scan the file if it was found and has not been scanned already.
|
||||||
|
if(!fullName.empty() && (scanned.find(fullName) == scanned.end()))
|
||||||
|
{
|
||||||
|
// Record scanned files.
|
||||||
|
scanned.insert(fullName);
|
||||||
|
|
||||||
|
// Check whether this file is already in the cache
|
||||||
|
std::map<cmStdString, cmIncludeLines*>::iterator fileIt=
|
||||||
|
this->FileCache.find(fullName);
|
||||||
|
if (fileIt!=this->FileCache.end())
|
||||||
|
{
|
||||||
|
fileIt->second->Used=true;
|
||||||
|
dependencies.insert(fullName);
|
||||||
|
for (std::vector<UnscannedEntry>::const_iterator incIt=
|
||||||
|
fileIt->second->UnscannedEntries.begin();
|
||||||
|
incIt!=fileIt->second->UnscannedEntries.end(); ++incIt)
|
||||||
|
{
|
||||||
|
if (this->Encountered.find(incIt->FileName) ==
|
||||||
|
this->Encountered.end())
|
||||||
|
{
|
||||||
|
this->Encountered.insert(incIt->FileName);
|
||||||
|
this->Unscanned.push(*incIt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
// Try to scan the file. Just leave it out if we cannot find
|
||||||
|
// it.
|
||||||
|
std::ifstream fin(fullName.c_str());
|
||||||
|
if(fin)
|
||||||
|
{
|
||||||
|
// Add this file as a dependency.
|
||||||
|
dependencies.insert(fullName);
|
||||||
|
|
||||||
|
// Scan this file for new dependencies. Pass the directory
|
||||||
|
// containing the file to handle double-quote includes.
|
||||||
|
std::string dir = cmSystemTools::GetFilenamePath(fullName);
|
||||||
|
this->Scan(fin, dir.c_str(), fullName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
srcFiles--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write the dependencies to the output stream. Makefile rules
|
// Write the dependencies to the output stream. Makefile rules
|
||||||
|
@ -275,7 +278,7 @@ bool cmDependsC::WriteDependencies(const char *src, const char *obj,
|
||||||
// convert the dependencies to paths relative to the home output
|
// convert the dependencies to paths relative to the home output
|
||||||
// directory. We must do the same here.
|
// directory. We must do the same here.
|
||||||
internalDepends << obj << std::endl;
|
internalDepends << obj << std::endl;
|
||||||
for(std::set<cmStdString>::iterator i=dependencies.begin();
|
for(std::set<cmStdString>::const_iterator i=dependencies.begin();
|
||||||
i != dependencies.end(); ++i)
|
i != dependencies.end(); ++i)
|
||||||
{
|
{
|
||||||
makeDepends << obj << ": " <<
|
makeDepends << obj << ": " <<
|
||||||
|
|
|
@ -32,11 +32,9 @@ public:
|
||||||
virtual ~cmDependsC();
|
virtual ~cmDependsC();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
typedef std::vector<char> t_CharBuffer;
|
|
||||||
|
|
||||||
// Implement writing/checking methods required by superclass.
|
// Implement writing/checking methods required by superclass.
|
||||||
virtual bool WriteDependencies(const char *src,
|
virtual bool WriteDependencies(const std::set<std::string>& sources,
|
||||||
const char *file,
|
const std::string& obj,
|
||||||
std::ostream& makeDepends,
|
std::ostream& makeDepends,
|
||||||
std::ostream& internalDepends);
|
std::ostream& internalDepends);
|
||||||
|
|
||||||
|
@ -82,7 +80,6 @@ protected:
|
||||||
const std::map<std::string, DependencyVector>* ValidDeps;
|
const std::map<std::string, DependencyVector>* ValidDeps;
|
||||||
std::set<cmStdString> Encountered;
|
std::set<cmStdString> Encountered;
|
||||||
std::queue<UnscannedEntry> Unscanned;
|
std::queue<UnscannedEntry> Unscanned;
|
||||||
t_CharBuffer Buffer;
|
|
||||||
|
|
||||||
std::map<cmStdString, cmIncludeLines *> FileCache;
|
std::map<cmStdString, cmIncludeLines *> FileCache;
|
||||||
std::map<cmStdString, cmStdString> HeaderLocationCache;
|
std::map<cmStdString, cmStdString> HeaderLocationCache;
|
||||||
|
|
|
@ -170,44 +170,50 @@ cmDependsFortran::~cmDependsFortran()
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmDependsFortran::WriteDependencies(const char *src, const char *obj,
|
bool cmDependsFortran::WriteDependencies(
|
||||||
std::ostream&, std::ostream&)
|
const std::set<std::string>& sources, const std::string& obj,
|
||||||
|
std::ostream&, std::ostream&)
|
||||||
{
|
{
|
||||||
// Make sure this is a scanning instance.
|
// Make sure this is a scanning instance.
|
||||||
if(!src || src[0] == '\0')
|
if(sources.empty() || sources.begin()->empty())
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Cannot scan dependencies without an source file.");
|
cmSystemTools::Error("Cannot scan dependencies without a source file.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!obj || obj[0] == '\0')
|
if(obj.empty())
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Cannot scan dependencies without an object file.");
|
cmSystemTools::Error("Cannot scan dependencies without an object file.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the information object for this source.
|
bool okay = true;
|
||||||
cmDependsFortranSourceInfo& info =
|
for(std::set<std::string>::const_iterator it = sources.begin();
|
||||||
this->Internal->CreateObjectInfo(obj, src);
|
it != sources.end(); ++it)
|
||||||
|
|
||||||
// Make a copy of the macros defined via ADD_DEFINITIONS
|
|
||||||
std::set<std::string> ppDefines(this->PPDefinitions.begin(),
|
|
||||||
this->PPDefinitions.end());
|
|
||||||
|
|
||||||
// Create the parser object. The constructor takes ppMacro and info per
|
|
||||||
// reference, so we may look into the resulting objects later.
|
|
||||||
cmDependsFortranParser parser(this, ppDefines, info);
|
|
||||||
|
|
||||||
// Push on the starting file.
|
|
||||||
cmDependsFortranParser_FilePush(&parser, src);
|
|
||||||
|
|
||||||
// Parse the translation unit.
|
|
||||||
if(cmDependsFortran_yyparse(parser.Scanner) != 0)
|
|
||||||
{
|
{
|
||||||
// Failed to parse the file. Report failure to write dependencies.
|
const std::string& src = *it;
|
||||||
return false;
|
// Get the information object for this source.
|
||||||
}
|
cmDependsFortranSourceInfo& info =
|
||||||
|
this->Internal->CreateObjectInfo(obj.c_str(), src.c_str());
|
||||||
|
|
||||||
return true;
|
// Make a copy of the macros defined via ADD_DEFINITIONS
|
||||||
|
std::set<std::string> ppDefines(this->PPDefinitions.begin(),
|
||||||
|
this->PPDefinitions.end());
|
||||||
|
|
||||||
|
// Create the parser object. The constructor takes ppMacro and info per
|
||||||
|
// reference, so we may look into the resulting objects later.
|
||||||
|
cmDependsFortranParser parser(this, ppDefines, info);
|
||||||
|
|
||||||
|
// Push on the starting file.
|
||||||
|
cmDependsFortranParser_FilePush(&parser, src.c_str());
|
||||||
|
|
||||||
|
// Parse the translation unit.
|
||||||
|
if(cmDependsFortran_yyparse(parser.Scanner) != 0)
|
||||||
|
{
|
||||||
|
// Failed to parse the file. Report failure to write dependencies.
|
||||||
|
okay = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return okay;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -66,7 +66,7 @@ protected:
|
||||||
|
|
||||||
// Implement writing/checking methods required by superclass.
|
// Implement writing/checking methods required by superclass.
|
||||||
virtual bool WriteDependencies(
|
virtual bool WriteDependencies(
|
||||||
const char *src, const char *file,
|
const std::set<std::string>& sources, const std::string& file,
|
||||||
std::ostream& makeDepends, std::ostream& internalDepends);
|
std::ostream& makeDepends, std::ostream& internalDepends);
|
||||||
|
|
||||||
// Actually write the depenencies to the streams.
|
// Actually write the depenencies to the streams.
|
||||||
|
|
|
@ -25,11 +25,11 @@ cmDependsJava::~cmDependsJava()
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmDependsJava::WriteDependencies(const char *src, const char *,
|
bool cmDependsJava::WriteDependencies(const std::set<std::string>& sources,
|
||||||
std::ostream&, std::ostream&)
|
const std::string&, std::ostream&, std::ostream&)
|
||||||
{
|
{
|
||||||
// Make sure this is a scanning instance.
|
// Make sure this is a scanning instance.
|
||||||
if(!src || src[0] == '\0')
|
if(sources.empty() || sources.begin()->empty())
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Cannot scan dependencies without an source file.");
|
cmSystemTools::Error("Cannot scan dependencies without an source file.");
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -29,7 +29,8 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Implement writing/checking methods required by superclass.
|
// Implement writing/checking methods required by superclass.
|
||||||
virtual bool WriteDependencies(const char *src, const char *file,
|
virtual bool WriteDependencies(
|
||||||
|
const std::set<std::string>& sources, const std::string& file,
|
||||||
std::ostream& makeDepends, std::ostream& internalDepends);
|
std::ostream& makeDepends, std::ostream& internalDepends);
|
||||||
virtual bool CheckDependencies(std::istream& internalDepends,
|
virtual bool CheckDependencies(std::istream& internalDepends,
|
||||||
const char* internalDependsFileName,
|
const char* internalDependsFileName,
|
||||||
|
|
|
@ -155,7 +155,7 @@ static const char *cmDocumentationStandardSeeAlso[][3] =
|
||||||
static const char *cmDocumentationCopyright[][3] =
|
static const char *cmDocumentationCopyright[][3] =
|
||||||
{
|
{
|
||||||
{0,
|
{0,
|
||||||
"Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. "
|
"Copyright 2000-2012 Kitware, Inc., Insight Software Consortium. "
|
||||||
"All rights reserved.", 0},
|
"All rights reserved.", 0},
|
||||||
{0,
|
{0,
|
||||||
"Redistribution and use in source and binary forms, with or without "
|
"Redistribution and use in source and binary forms, with or without "
|
||||||
|
|
|
@ -592,7 +592,8 @@ void cmExtraEclipseCDT4Generator::CreateLinksToSubprojects(
|
||||||
this->GetEclipsePath(linkSourceDirectory),
|
this->GetEclipsePath(linkSourceDirectory),
|
||||||
LinkToFolder
|
LinkToFolder
|
||||||
);
|
);
|
||||||
this->SrcLinkedResources.push_back(it->first);
|
// Don't add it to the srcLinkedResources, because listing multiple
|
||||||
|
// directories confuses the Eclipse indexer (#13596).
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -743,15 +744,16 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
|
||||||
/* I don't know what the pathentry kind="src" are good for, e.g. autocompletion
|
/* I don't know what the pathentry kind="src" are good for, e.g. autocompletion
|
||||||
* works also without them. Done wrong, the indexer complains, see #12417
|
* works also without them. Done wrong, the indexer complains, see #12417
|
||||||
* and #12213.
|
* and #12213.
|
||||||
|
* According to #13596, this entry at least limits the directories the
|
||||||
|
* indexer is searching for files. So now the "src" entry contains only
|
||||||
|
* the linked resource to CMAKE_SOURCE_DIR.
|
||||||
* The CDT documentation is very terse on that:
|
* The CDT documentation is very terse on that:
|
||||||
* "CDT_SOURCE: Entry kind constant describing a path entry identifying a
|
* "CDT_SOURCE: Entry kind constant describing a path entry identifying a
|
||||||
* folder containing source code to be compiled."
|
* folder containing source code to be compiled."
|
||||||
* Also on the cdt-dev list didn't bring any information:
|
* Also on the cdt-dev list didn't bring any information:
|
||||||
* http://web.archiveorange.com/archive/v/B4NlJDNIpYoOS1SbxFNy
|
* http://web.archiveorange.com/archive/v/B4NlJDNIpYoOS1SbxFNy
|
||||||
* So I'm disabling them for now, hoping that somebody will report if something
|
|
||||||
* is not workging anymore.
|
|
||||||
* Alex */
|
* Alex */
|
||||||
#ifdef DO_CREATE_SRC_PATH_ENTRIES
|
|
||||||
for (std::vector<std::string>::const_iterator
|
for (std::vector<std::string>::const_iterator
|
||||||
it = this->SrcLinkedResources.begin();
|
it = this->SrcLinkedResources.begin();
|
||||||
it != this->SrcLinkedResources.end();
|
it != this->SrcLinkedResources.end();
|
||||||
|
@ -768,7 +770,7 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
|
||||||
excludeFromOut += this->EscapeForXML(*it) + "/|";
|
excludeFromOut += this->EscapeForXML(*it) + "/|";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
excludeFromOut += "**/CMakeFiles/";
|
excludeFromOut += "**/CMakeFiles/";
|
||||||
fout << "<pathentry excluding=\"" << excludeFromOut
|
fout << "<pathentry excluding=\"" << excludeFromOut
|
||||||
<< "\" kind=\"out\" path=\"\"/>\n";
|
<< "\" kind=\"out\" path=\"\"/>\n";
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef GetCurrentDirectory
|
#undef GetCurrentDirectory
|
||||||
|
#include <assert.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
@ -705,11 +706,8 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
|
||||||
bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
||||||
bool recurse)
|
bool recurse)
|
||||||
{
|
{
|
||||||
if ( args.size() < 2 )
|
// File commands has at least one argument
|
||||||
{
|
assert(args.size() > 1);
|
||||||
this->SetError("GLOB requires at least a variable name");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<std::string>::const_iterator i = args.begin();
|
std::vector<std::string>::const_iterator i = args.begin();
|
||||||
|
|
||||||
|
@ -843,11 +841,8 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
||||||
bool cmFileCommand::HandleMakeDirectoryCommand(
|
bool cmFileCommand::HandleMakeDirectoryCommand(
|
||||||
std::vector<std::string> const& args)
|
std::vector<std::string> const& args)
|
||||||
{
|
{
|
||||||
if(args.size() < 2 )
|
// File command has at least one argument
|
||||||
{
|
assert(args.size() > 1);
|
||||||
this->SetError("called with incorrect number of arguments");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<std::string>::const_iterator i = args.begin();
|
std::vector<std::string>::const_iterator i = args.begin();
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
#include "cmGeneratorExpressionDAGChecker.h"
|
#include "cmGeneratorExpressionDAGChecker.h"
|
||||||
#include "cmGeneratorExpression.h"
|
#include "cmGeneratorExpression.h"
|
||||||
|
|
||||||
|
#include <cmsys/String.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
#if !defined(__SUNPRO_CC) || __SUNPRO_CC > 0x510
|
#if !defined(__SUNPRO_CC) || __SUNPRO_CC > 0x510
|
||||||
static
|
static
|
||||||
|
@ -253,7 +255,8 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
|
||||||
return parameters.front().empty() ? "1" : "0";
|
return parameters.front().empty() ? "1" : "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
return *parameters.begin() == context->Config ? "1" : "0";
|
return cmsysString_strcasecmp(parameters.begin()->c_str(),
|
||||||
|
context->Config) == 0 ? "1" : "0";
|
||||||
}
|
}
|
||||||
} configurationTestNode;
|
} configurationTestNode;
|
||||||
|
|
||||||
|
|
|
@ -268,6 +268,8 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution(
|
||||||
cmLocalGenerator* root,
|
cmLocalGenerator* root,
|
||||||
OrderedTargetDependSet const& projectTargets)
|
OrderedTargetDependSet const& projectTargets)
|
||||||
{
|
{
|
||||||
|
VisualStudioFolders.clear();
|
||||||
|
|
||||||
for(OrderedTargetDependSet::const_iterator tt =
|
for(OrderedTargetDependSet::const_iterator tt =
|
||||||
projectTargets.begin(); tt != projectTargets.end(); ++tt)
|
projectTargets.begin(); tt != projectTargets.end(); ++tt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,13 +15,14 @@
|
||||||
|
|
||||||
#include <stdlib.h> // required for atoi
|
#include <stdlib.h> // required for atoi
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <assert.h>
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmListCommand
|
bool cmListCommand
|
||||||
::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
|
::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
|
||||||
{
|
{
|
||||||
if(args.size() < 1)
|
if(args.size() < 2)
|
||||||
{
|
{
|
||||||
this->SetError("must be called with at least one argument.");
|
this->SetError("must be called with at least two arguments.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -243,11 +244,7 @@ bool cmListCommand::HandleGetCommand(std::vector<std::string> const& args)
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmListCommand::HandleAppendCommand(std::vector<std::string> const& args)
|
bool cmListCommand::HandleAppendCommand(std::vector<std::string> const& args)
|
||||||
{
|
{
|
||||||
if(args.size() < 2)
|
assert(args.size() >= 2);
|
||||||
{
|
|
||||||
this->SetError("sub-command APPEND requires at least one argument.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Skip if nothing to append.
|
// Skip if nothing to append.
|
||||||
if(args.size() < 3)
|
if(args.size() < 3)
|
||||||
|
@ -424,12 +421,8 @@ bool cmListCommand
|
||||||
bool cmListCommand
|
bool cmListCommand
|
||||||
::HandleReverseCommand(std::vector<std::string> const& args)
|
::HandleReverseCommand(std::vector<std::string> const& args)
|
||||||
{
|
{
|
||||||
if(args.size() < 2)
|
assert(args.size() >= 2);
|
||||||
{
|
if(args.size() > 2)
|
||||||
this->SetError("sub-command REVERSE requires a list as an argument.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if(args.size() > 2)
|
|
||||||
{
|
{
|
||||||
this->SetError(
|
this->SetError(
|
||||||
"sub-command REVERSE only takes one argument.");
|
"sub-command REVERSE only takes one argument.");
|
||||||
|
@ -463,13 +456,8 @@ bool cmListCommand
|
||||||
bool cmListCommand
|
bool cmListCommand
|
||||||
::HandleRemoveDuplicatesCommand(std::vector<std::string> const& args)
|
::HandleRemoveDuplicatesCommand(std::vector<std::string> const& args)
|
||||||
{
|
{
|
||||||
if(args.size() < 2)
|
assert(args.size() >= 2);
|
||||||
{
|
if(args.size() > 2)
|
||||||
this->SetError(
|
|
||||||
"sub-command REMOVE_DUPLICATES requires a list as an argument.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if(args.size() > 2)
|
|
||||||
{
|
{
|
||||||
this->SetError(
|
this->SetError(
|
||||||
"sub-command REMOVE_DUPLICATES only takes one argument.");
|
"sub-command REMOVE_DUPLICATES only takes one argument.");
|
||||||
|
@ -513,12 +501,8 @@ bool cmListCommand
|
||||||
bool cmListCommand
|
bool cmListCommand
|
||||||
::HandleSortCommand(std::vector<std::string> const& args)
|
::HandleSortCommand(std::vector<std::string> const& args)
|
||||||
{
|
{
|
||||||
if(args.size() < 2)
|
assert(args.size() >= 2);
|
||||||
{
|
if(args.size() > 2)
|
||||||
this->SetError("sub-command SORT requires a list as an argument.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if(args.size() > 2)
|
|
||||||
{
|
{
|
||||||
this->SetError(
|
this->SetError(
|
||||||
"sub-command SORT only takes one argument.");
|
"sub-command SORT only takes one argument.");
|
||||||
|
|
|
@ -1939,8 +1939,12 @@ void cmLocalUnixMakefileGenerator3
|
||||||
for(ImplicitDependFileMap::const_iterator pi = implicitPairs.begin();
|
for(ImplicitDependFileMap::const_iterator pi = implicitPairs.begin();
|
||||||
pi != implicitPairs.end(); ++pi)
|
pi != implicitPairs.end(); ++pi)
|
||||||
{
|
{
|
||||||
cmakefileStream << " \"" << pi->second << "\" ";
|
for(cmDepends::DependencyVector::const_iterator di = pi->second.begin();
|
||||||
cmakefileStream << "\"" << pi->first << "\"\n";
|
di != pi->second.end(); ++ di)
|
||||||
|
{
|
||||||
|
cmakefileStream << " \"" << *di << "\" ";
|
||||||
|
cmakefileStream << "\"" << pi->first << "\"\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cmakefileStream << " )\n";
|
cmakefileStream << " )\n";
|
||||||
|
|
||||||
|
@ -2204,7 +2208,7 @@ cmLocalUnixMakefileGenerator3::AddImplicitDepends(cmTarget const& tgt,
|
||||||
const char* obj,
|
const char* obj,
|
||||||
const char* src)
|
const char* src)
|
||||||
{
|
{
|
||||||
this->ImplicitDepends[tgt.GetName()][lang][obj] = src;
|
this->ImplicitDepends[tgt.GetName()][lang][obj].push_back(src);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -209,7 +209,8 @@ public:
|
||||||
|
|
||||||
// File pairs for implicit dependency scanning. The key of the map
|
// File pairs for implicit dependency scanning. The key of the map
|
||||||
// is the depender and the value is the explicit dependee.
|
// is the depender and the value is the explicit dependee.
|
||||||
struct ImplicitDependFileMap: public std::map<cmStdString, cmStdString> {};
|
struct ImplicitDependFileMap:
|
||||||
|
public std::map<cmStdString, cmDepends::DependencyVector> {};
|
||||||
struct ImplicitDependLanguageMap:
|
struct ImplicitDependLanguageMap:
|
||||||
public std::map<cmStdString, ImplicitDependFileMap> {};
|
public std::map<cmStdString, ImplicitDependFileMap> {};
|
||||||
struct ImplicitDependTargetMap:
|
struct ImplicitDependTargetMap:
|
||||||
|
|
|
@ -2584,7 +2584,10 @@ cmTarget::OutputInfo const* cmTarget::GetOutputInfo(const char* config)
|
||||||
OutputInfo info;
|
OutputInfo info;
|
||||||
this->ComputeOutputDir(config, false, info.OutDir);
|
this->ComputeOutputDir(config, false, info.OutDir);
|
||||||
this->ComputeOutputDir(config, true, info.ImpDir);
|
this->ComputeOutputDir(config, true, info.ImpDir);
|
||||||
this->ComputePDBOutputDir(config, info.PdbDir);
|
if(!this->ComputePDBOutputDir(config, info.PdbDir))
|
||||||
|
{
|
||||||
|
info.PdbDir = info.OutDir;
|
||||||
|
}
|
||||||
OutputInfoMapType::value_type entry(config_upper, info);
|
OutputInfoMapType::value_type entry(config_upper, info);
|
||||||
i = this->Internal->OutputInfoMap.insert(entry).first;
|
i = this->Internal->OutputInfoMap.insert(entry).first;
|
||||||
}
|
}
|
||||||
|
@ -3940,7 +3943,7 @@ bool cmTarget::ComputeOutputDir(const char* config,
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmTarget::ComputePDBOutputDir(const char* config, std::string& out)
|
bool cmTarget::ComputePDBOutputDir(const char* config, std::string& out)
|
||||||
{
|
{
|
||||||
// Look for a target property defining the target output directory
|
// Look for a target property defining the target output directory
|
||||||
// based on the target type.
|
// based on the target type.
|
||||||
|
@ -3980,8 +3983,7 @@ void cmTarget::ComputePDBOutputDir(const char* config, std::string& out)
|
||||||
}
|
}
|
||||||
if(out.empty())
|
if(out.empty())
|
||||||
{
|
{
|
||||||
// Default to the current output directory.
|
return false;
|
||||||
out = ".";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the output path to a full path in case it is
|
// Convert the output path to a full path in case it is
|
||||||
|
@ -3996,6 +3998,7 @@ void cmTarget::ComputePDBOutputDir(const char* config, std::string& out)
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
||||||
AppendDirectoryForConfig("/", config, "", out);
|
AppendDirectoryForConfig("/", config, "", out);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -577,7 +577,7 @@ private:
|
||||||
struct OutputInfo;
|
struct OutputInfo;
|
||||||
OutputInfo const* GetOutputInfo(const char* config);
|
OutputInfo const* GetOutputInfo(const char* config);
|
||||||
bool ComputeOutputDir(const char* config, bool implib, std::string& out);
|
bool ComputeOutputDir(const char* config, bool implib, std::string& out);
|
||||||
void ComputePDBOutputDir(const char* config, std::string& out);
|
bool ComputePDBOutputDir(const char* config, std::string& out);
|
||||||
|
|
||||||
// Cache import information from properties for each configuration.
|
// Cache import information from properties for each configuration.
|
||||||
struct ImportInfo;
|
struct ImportInfo;
|
||||||
|
|
|
@ -509,19 +509,28 @@ ENDIF(KWSYS_USE_FundamentalType)
|
||||||
|
|
||||||
IF(KWSYS_USE_IOStream)
|
IF(KWSYS_USE_IOStream)
|
||||||
# Determine whether iostreams support long long.
|
# Determine whether iostreams support long long.
|
||||||
|
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES
|
||||||
|
-DKWSYS_IOS_USE_ANSI=${KWSYS_IOS_USE_ANSI}
|
||||||
|
-DKWSYS_IOS_HAVE_STD=${KWSYS_IOS_HAVE_STD})
|
||||||
IF(KWSYS_CXX_HAS_LONG_LONG)
|
IF(KWSYS_CXX_HAS_LONG_LONG)
|
||||||
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES
|
|
||||||
-DKWSYS_IOS_USE_ANSI=${KWSYS_IOS_USE_ANSI}
|
|
||||||
-DKWSYS_IOS_HAVE_STD=${KWSYS_IOS_HAVE_STD})
|
|
||||||
KWSYS_PLATFORM_CXX_TEST(KWSYS_IOS_HAS_ISTREAM_LONG_LONG
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_IOS_HAS_ISTREAM_LONG_LONG
|
||||||
"Checking if istream supports long long" DIRECT)
|
"Checking if istream supports long long" DIRECT)
|
||||||
KWSYS_PLATFORM_CXX_TEST(KWSYS_IOS_HAS_OSTREAM_LONG_LONG
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_IOS_HAS_OSTREAM_LONG_LONG
|
||||||
"Checking if ostream supports long long" DIRECT)
|
"Checking if ostream supports long long" DIRECT)
|
||||||
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES)
|
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(KWSYS_IOS_HAS_ISTREAM_LONG_LONG 0)
|
SET(KWSYS_IOS_HAS_ISTREAM_LONG_LONG 0)
|
||||||
SET(KWSYS_IOS_HAS_OSTREAM_LONG_LONG 0)
|
SET(KWSYS_IOS_HAS_OSTREAM_LONG_LONG 0)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
IF(KWSYS_CXX_HAS___INT64)
|
||||||
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_IOS_HAS_ISTREAM___INT64
|
||||||
|
"Checking if istream supports __int64" DIRECT)
|
||||||
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_IOS_HAS_OSTREAM___INT64
|
||||||
|
"Checking if ostream supports __int64" DIRECT)
|
||||||
|
ELSE()
|
||||||
|
SET(KWSYS_IOS_HAS_ISTREAM___INT64 0)
|
||||||
|
SET(KWSYS_IOS_HAS_OSTREAM___INT64 0)
|
||||||
|
ENDIF()
|
||||||
|
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES)
|
||||||
ENDIF(KWSYS_USE_IOStream)
|
ENDIF(KWSYS_USE_IOStream)
|
||||||
|
|
||||||
IF(KWSYS_NAMESPACE MATCHES "^kwsys$")
|
IF(KWSYS_NAMESPACE MATCHES "^kwsys$")
|
||||||
|
@ -566,9 +575,76 @@ IF(KWSYS_USE_SystemTools)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(KWSYS_USE_SystemInformation)
|
IF(KWSYS_USE_SystemInformation)
|
||||||
SET_PROPERTY(SOURCE SystemInformation.cxx PROPERTY
|
IF(NOT CYGWIN)
|
||||||
COMPILE_DEFINITIONS KWSYS_USE_LONG_LONG=${KWSYS_USE_LONG_LONG}
|
INCLUDE(CheckIncludeFiles)
|
||||||
KWSYS_USE___INT64=${KWSYS_USE___INT64})
|
CHECK_INCLUDE_FILES("sys/types.h;ifaddrs.h" KWSYS_SYS_HAS_IFADDRS_H)
|
||||||
|
IF(KWSYS_SYS_HAS_IFADDRS_H)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_SYS_HAS_IFADDRS_H=1)
|
||||||
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
|
IF(WIN32)
|
||||||
|
INCLUDE(CheckSymbolExists)
|
||||||
|
SET(CMAKE_REQUIRED_LIBRARIES Psapi)
|
||||||
|
CHECK_SYMBOL_EXISTS(GetProcessMemoryInfo "windows.h;psapi.h" KWSYS_SYS_HAS_PSAPI)
|
||||||
|
UNSET(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
IF(KWSYS_SYS_HAS_PSAPI)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_SYS_HAS_PSAPI=1)
|
||||||
|
IF(MSVC70 OR MSVC71)
|
||||||
|
# Suppress LNK4089: all references to 'PSAPI.DLL' discarded by /OPT:REF
|
||||||
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /IGNORE:4089")
|
||||||
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
|
IF(KWSYS_LFS_AVAILABLE AND NOT KWSYS_LFS_DISABLE)
|
||||||
|
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES -DKWSYS_HAS_LFS=1)
|
||||||
|
ENDIF()
|
||||||
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_RLIMIT64
|
||||||
|
"Checking whether CXX compiler has rlimit64" DIRECT)
|
||||||
|
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES)
|
||||||
|
IF(KWSYS_CXX_HAS_RLIMIT64)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_CXX_HAS_RLIMIT64=1)
|
||||||
|
ENDIF()
|
||||||
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_ATOL
|
||||||
|
"Checking whether CXX compiler has atol" DIRECT)
|
||||||
|
IF(KWSYS_CXX_HAS_ATOL)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_CXX_HAS_ATOL=1)
|
||||||
|
ENDIF()
|
||||||
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_ATOLL
|
||||||
|
"Checking whether CXX compiler has atoll" DIRECT)
|
||||||
|
IF(KWSYS_CXX_HAS_ATOLL)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_CXX_HAS_ATOLL=1)
|
||||||
|
ENDIF()
|
||||||
|
KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS__ATOI64
|
||||||
|
"Checking whether CXX compiler has _atoi64" DIRECT)
|
||||||
|
IF(KWSYS_CXX_HAS__ATOI64)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_CXX_HAS__ATOI64=1)
|
||||||
|
ENDIF()
|
||||||
|
IF(KWSYS_USE___INT64)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx testSystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_USE___INT64=1)
|
||||||
|
ENDIF()
|
||||||
|
IF(KWSYS_USE_LONG_LONG)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx testSystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_USE_LONG_LONG=1)
|
||||||
|
ENDIF()
|
||||||
|
IF(KWSYS_IOS_HAS_OSTREAM_LONG_LONG)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx testSystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_IOS_HAS_OSTREAM_LONG_LONG=1)
|
||||||
|
ENDIF()
|
||||||
|
IF(KWSYS_IOS_HAS_OSTREAM___INT64)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx testSystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_IOS_HAS_OSTREAM___INT64=1)
|
||||||
|
ENDIF()
|
||||||
|
IF(KWSYS_BUILD_SHARED)
|
||||||
|
SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
|
||||||
|
COMPILE_DEFINITIONS KWSYS_BUILD_SHARED=1)
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
@ -802,9 +878,12 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
|
||||||
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ${CMAKE_DL_LIBS})
|
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ${CMAKE_DL_LIBS})
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
ENDIF(KWSYS_USE_DynamicLoader)
|
ENDIF(KWSYS_USE_DynamicLoader)
|
||||||
|
|
||||||
IF(KWSYS_USE_SystemInformation AND WIN32)
|
IF(KWSYS_USE_SystemInformation AND WIN32)
|
||||||
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ws2_32)
|
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ws2_32)
|
||||||
|
IF(KWSYS_SYS_HAS_PSAPI)
|
||||||
|
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} Psapi)
|
||||||
|
ENDIF()
|
||||||
ENDIF(KWSYS_USE_SystemInformation AND WIN32)
|
ENDIF(KWSYS_USE_SystemInformation AND WIN32)
|
||||||
|
|
||||||
# Apply user-defined target properties to the library.
|
# Apply user-defined target properties to the library.
|
||||||
|
@ -842,6 +921,16 @@ ENDIF(KWSYS_ENABLE_C AND KWSYS_C_SRCS)
|
||||||
# line to configure the namespace in the C and C++ source files.
|
# line to configure the namespace in the C and C++ source files.
|
||||||
ADD_DEFINITIONS("-DKWSYS_NAMESPACE=${KWSYS_NAMESPACE}")
|
ADD_DEFINITIONS("-DKWSYS_NAMESPACE=${KWSYS_NAMESPACE}")
|
||||||
|
|
||||||
|
# Disable deprecation warnings for standard C functions.
|
||||||
|
IF(MSVC OR (WIN32 AND "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$"))
|
||||||
|
ADD_DEFINITIONS(
|
||||||
|
-D_CRT_NONSTDC_NO_DEPRECATE
|
||||||
|
-D_CRT_SECURE_NO_DEPRECATE
|
||||||
|
-D_CRT_SECURE_NO_WARNINGS
|
||||||
|
-D_SCL_SECURE_NO_DEPRECATE
|
||||||
|
)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(KWSYS_USE_String)
|
IF(KWSYS_USE_String)
|
||||||
# Activate code in "String.c". See the comment in the source.
|
# Activate code in "String.c". See the comment in the source.
|
||||||
SET_SOURCE_FILES_PROPERTIES(String.c PROPERTIES
|
SET_SOURCE_FILES_PROPERTIES(String.c PROPERTIES
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# KWSys - Kitware System Library
|
# KWSys - Kitware System Library
|
||||||
# Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
# Copyright 2000-2012 Kitware, Inc., Insight Software Consortium
|
||||||
#
|
#
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
# Distributed under the OSI-approved BSD License (the "License");
|
||||||
# see accompanying file Copyright.txt for details.
|
# see accompanying file Copyright.txt for details.
|
||||||
|
@ -9,10 +9,9 @@
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
# See the License for more information.
|
# See the License for more information.
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
set (CTEST_PROJECT_NAME "kwsys")
|
set(CTEST_PROJECT_NAME "KWSys")
|
||||||
set (CTEST_NIGHTLY_START_TIME "21:00:00 EDT")
|
set(CTEST_NIGHTLY_START_TIME "21:00:00 EDT")
|
||||||
set (CTEST_DART_SERVER_VERSION "2")
|
|
||||||
set(CTEST_DROP_METHOD "http")
|
set(CTEST_DROP_METHOD "http")
|
||||||
set(CTEST_DROP_SITE "www.cdash.org")
|
set(CTEST_DROP_SITE "open.cdash.org")
|
||||||
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=PublicDashboard")
|
set(CTEST_DROP_LOCATION "/submit.php?project=PublicDashboard")
|
||||||
set(CTEST_DROP_SITE_CDASH TRUE)
|
set(CTEST_DROP_SITE_CDASH TRUE)
|
||||||
|
|
|
@ -37,20 +37,6 @@
|
||||||
/* Whether kwsys namespace is "kwsys". */
|
/* Whether kwsys namespace is "kwsys". */
|
||||||
#define @KWSYS_NAMESPACE@_NAME_IS_KWSYS @KWSYS_NAME_IS_KWSYS@
|
#define @KWSYS_NAMESPACE@_NAME_IS_KWSYS @KWSYS_NAME_IS_KWSYS@
|
||||||
|
|
||||||
/* If we are building a kwsys .c or .cxx file, suppress the Microsoft
|
|
||||||
deprecation warnings. */
|
|
||||||
#if defined(KWSYS_NAMESPACE)
|
|
||||||
# ifndef _CRT_NONSTDC_NO_DEPRECATE
|
|
||||||
# define _CRT_NONSTDC_NO_DEPRECATE
|
|
||||||
# endif
|
|
||||||
# ifndef _CRT_SECURE_NO_DEPRECATE
|
|
||||||
# define _CRT_SECURE_NO_DEPRECATE
|
|
||||||
# endif
|
|
||||||
# ifndef _SCL_SECURE_NO_DEPRECATE
|
|
||||||
# define _SCL_SECURE_NO_DEPRECATE
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Whether Large File Support is requested. */
|
/* Whether Large File Support is requested. */
|
||||||
#define @KWSYS_NAMESPACE@_LFS_REQUESTED @KWSYS_LFS_REQUESTED@
|
#define @KWSYS_NAMESPACE@_LFS_REQUESTED @KWSYS_LFS_REQUESTED@
|
||||||
|
|
||||||
|
|
|
@ -2732,6 +2732,7 @@ static void kwsysProcessesSignalHandler(int signum
|
||||||
kwsysProcess* cp = kwsysProcesses.Processes[i];
|
kwsysProcess* cp = kwsysProcesses.Processes[i];
|
||||||
kwsysProcess_ssize_t status=
|
kwsysProcess_ssize_t status=
|
||||||
read(cp->PipeReadEnds[KWSYSPE_PIPE_SIGNAL], &buf, 1);
|
read(cp->PipeReadEnds[KWSYSPE_PIPE_SIGNAL], &buf, 1);
|
||||||
|
(void)status;
|
||||||
status=write(cp->SignalPipe, &buf, 1);
|
status=write(cp->SignalPipe, &buf, 1);
|
||||||
(void)status;
|
(void)status;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue