Remove CMake multiline block-end command arguments
removing arguments omitted in 9db3116226
This commit is contained in:
parent
addefc2ae3
commit
84b49be8f0
|
@ -135,8 +135,7 @@ macro(CMAKE_SETUP_TESTING)
|
||||||
if("${CMAKE_TEST_GENERATOR}" MATCHES "NMake" OR
|
if("${CMAKE_TEST_GENERATOR}" MATCHES "NMake" OR
|
||||||
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio")
|
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio")
|
||||||
set(CMAKE_TEST_MSVC 1)
|
set(CMAKE_TEST_MSVC 1)
|
||||||
endif("${CMAKE_TEST_GENERATOR}" MATCHES "NMake" OR
|
endif()
|
||||||
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_TEST_SYSTEM_LIBRARIES 0)
|
set(CMAKE_TEST_SYSTEM_LIBRARIES 0)
|
||||||
|
@ -561,8 +560,7 @@ if (UNIX)
|
||||||
set(CMAKE_SKIP_RPATH OFF CACHE INTERNAL "CMake built with RPATH.")
|
set(CMAKE_SKIP_RPATH OFF CACHE INTERNAL "CMake built with RPATH.")
|
||||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||||
endif(CMAKE_USE_SYSTEM_CURL OR CMAKE_USE_SYSTEM_ZLIB
|
endif()
|
||||||
OR CMAKE_USE_SYSTEM_EXPAT OR CTEST_USE_XMLRPC OR CURSES_NEED_RPATH OR QT_NEED_RPATH)
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -160,9 +160,7 @@ if (CMAKE_CROSSCOMPILING
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
endif (CMAKE_CROSSCOMPILING
|
endif ()
|
||||||
AND "${CMAKE_C_COMPILER_ID}" MATCHES "GNU"
|
|
||||||
AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
|
||||||
|
|
||||||
include(${CMAKE_ROOT}/Modules/CMakeClDeps.cmake)
|
include(${CMAKE_ROOT}/Modules/CMakeClDeps.cmake)
|
||||||
include(CMakeFindBinUtils)
|
include(CMakeFindBinUtils)
|
||||||
|
|
|
@ -167,9 +167,7 @@ if (CMAKE_CROSSCOMPILING
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
endif (CMAKE_CROSSCOMPILING
|
endif ()
|
||||||
AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU"
|
|
||||||
AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
|
||||||
|
|
||||||
include(${CMAKE_ROOT}/Modules/CMakeClDeps.cmake)
|
include(${CMAKE_ROOT}/Modules/CMakeClDeps.cmake)
|
||||||
include(CMakeFindBinUtils)
|
include(CMakeFindBinUtils)
|
||||||
|
|
|
@ -39,9 +39,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
mark_as_advanced(CMAKE_LINKER)
|
mark_as_advanced(CMAKE_LINKER)
|
||||||
|
|
||||||
# in all other cases search for ar, ranlib, etc.
|
# in all other cases search for ar, ranlib, etc.
|
||||||
else("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
else()
|
||||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
|
||||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
|
||||||
|
|
||||||
find_program(CMAKE_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ar HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
find_program(CMAKE_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ar HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||||
|
|
||||||
|
@ -58,9 +56,7 @@ else("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
|
|
||||||
mark_as_advanced(CMAKE_AR CMAKE_RANLIB CMAKE_STRIP CMAKE_LINKER CMAKE_NM CMAKE_OBJDUMP CMAKE_OBJCOPY)
|
mark_as_advanced(CMAKE_AR CMAKE_RANLIB CMAKE_STRIP CMAKE_LINKER CMAKE_NM CMAKE_OBJDUMP CMAKE_OBJCOPY)
|
||||||
|
|
||||||
endif("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
endif()
|
||||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
|
||||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
|
||||||
|
|
||||||
|
|
||||||
# on Apple there really should be install_name_tool
|
# on Apple there really should be install_name_tool
|
||||||
|
|
|
@ -139,11 +139,7 @@ if(UNIX)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif(GTK_gtk_INCLUDE_PATH
|
endif()
|
||||||
AND GTK_glibconfig_INCLUDE_PATH
|
|
||||||
AND GTK_glib_INCLUDE_PATH
|
|
||||||
AND GTK_gtk_LIBRARY
|
|
||||||
AND GTK_glib_LIBRARY)
|
|
||||||
|
|
||||||
mark_as_advanced(
|
mark_as_advanced(
|
||||||
GTK_gdk_LIBRARY
|
GTK_gdk_LIBRARY
|
||||||
|
|
|
@ -93,16 +93,14 @@ if(EXISTS
|
||||||
message("found debug")
|
message("found debug")
|
||||||
set(bar
|
set(bar
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/bar${CMAKE_EXECUTABLE_SUFFIX}")
|
"${BuildDepends_BINARY_DIR}/Project/Debug/bar${CMAKE_EXECUTABLE_SUFFIX}")
|
||||||
endif(EXISTS
|
endif()
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/bar${CMAKE_EXECUTABLE_SUFFIX}")
|
|
||||||
set(zot ${BuildDepends_BINARY_DIR}/Project/zot${CMAKE_EXECUTABLE_SUFFIX})
|
set(zot ${BuildDepends_BINARY_DIR}/Project/zot${CMAKE_EXECUTABLE_SUFFIX})
|
||||||
if(EXISTS
|
if(EXISTS
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}" )
|
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}" )
|
||||||
message("found debug")
|
message("found debug")
|
||||||
set(zot
|
set(zot
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}")
|
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}")
|
||||||
endif(EXISTS
|
endif()
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}")
|
|
||||||
|
|
||||||
message("Running ${bar} ")
|
message("Running ${bar} ")
|
||||||
execute_process(COMMAND ${bar} OUTPUT_VARIABLE out RESULT_VARIABLE runResult)
|
execute_process(COMMAND ${bar} OUTPUT_VARIABLE out RESULT_VARIABLE runResult)
|
||||||
|
@ -178,13 +176,11 @@ endif()
|
||||||
if(EXISTS
|
if(EXISTS
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/bar${CMAKE_EXECUTABLE_SUFFIX}" )
|
"${BuildDepends_BINARY_DIR}/Project/Debug/bar${CMAKE_EXECUTABLE_SUFFIX}" )
|
||||||
message("found debug")
|
message("found debug")
|
||||||
endif(EXISTS
|
endif()
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/bar${CMAKE_EXECUTABLE_SUFFIX}")
|
|
||||||
if(EXISTS
|
if(EXISTS
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}" )
|
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}" )
|
||||||
message("found debug")
|
message("found debug")
|
||||||
endif(EXISTS
|
endif()
|
||||||
"${BuildDepends_BINARY_DIR}/Project/Debug/zot${CMAKE_EXECUTABLE_SUFFIX}")
|
|
||||||
|
|
||||||
message("Running ${bar} ")
|
message("Running ${bar} ")
|
||||||
execute_process(COMMAND ${bar} OUTPUT_VARIABLE out RESULT_VARIABLE runResult)
|
execute_process(COMMAND ${bar} OUTPUT_VARIABLE out RESULT_VARIABLE runResult)
|
||||||
|
|
|
@ -794,9 +794,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
NOT "$ENV{COVFILE}" STREQUAL "" OR
|
NOT "$ENV{COVFILE}" STREQUAL "" OR
|
||||||
CMAKE_RUN_LONG_TESTS)
|
CMAKE_RUN_LONG_TESTS)
|
||||||
set(CTEST_RUN_CPackTestAllGenerators ${CTEST_TEST_CPACK})
|
set(CTEST_RUN_CPackTestAllGenerators ${CTEST_TEST_CPACK})
|
||||||
endif(CMAKE_CXX_FLAGS MATCHES "-ftest-coverage" OR
|
endif()
|
||||||
NOT "$ENV{COVFILE}" STREQUAL "" OR
|
|
||||||
CMAKE_RUN_LONG_TESTS)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CTEST_RUN_CPackTestAllGenerators)
|
if(CTEST_RUN_CPackTestAllGenerators)
|
||||||
|
@ -1217,9 +1215,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/testfromsubdir.obj"
|
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/testfromsubdir.obj"
|
||||||
)
|
)
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/SubDirSpaces")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/SubDirSpaces")
|
||||||
endif (MAKE_IS_GNU OR
|
endif ()
|
||||||
"${CMAKE_TEST_MAKEPROGRAM}" MATCHES "nmake|gmake|wmake" OR
|
|
||||||
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio|XCode|Borland")
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_test(SubDir ${CMAKE_CTEST_COMMAND}
|
add_test(SubDir ${CMAKE_CTEST_COMMAND}
|
||||||
|
|
|
@ -53,15 +53,13 @@ get_property(SOURCERESULT
|
||||||
if (RESULT1 AND RESULT2 AND RESULT3 AND GLOBALRESULT AND
|
if (RESULT1 AND RESULT2 AND RESULT3 AND GLOBALRESULT AND
|
||||||
DIRECTORYRESULT AND SOURCERESULT)
|
DIRECTORYRESULT AND SOURCERESULT)
|
||||||
add_executable (Properties SubDir/properties3.cxx properties)
|
add_executable (Properties SubDir/properties3.cxx properties)
|
||||||
else (RESULT1 AND RESULT2 AND RESULT3 AND GLOBALRESULT AND
|
else ()
|
||||||
DIRECTORYRESULT AND SOURCERESULT)
|
|
||||||
message(SEND_ERROR
|
message(SEND_ERROR
|
||||||
"Error: test results are RESULT1=${RESULT1} RESULT2=${RESULT2} "
|
"Error: test results are RESULT1=${RESULT1} RESULT2=${RESULT2} "
|
||||||
"RESULT3=${RESULT3} GLOBALRESULT=${GLOBALRESULT} "
|
"RESULT3=${RESULT3} GLOBALRESULT=${GLOBALRESULT} "
|
||||||
"DIRECTORYRESULT=${DIRECTORYRESULT} "
|
"DIRECTORYRESULT=${DIRECTORYRESULT} "
|
||||||
"SOURCERESULT=${SOURCERESULT}")
|
"SOURCERESULT=${SOURCERESULT}")
|
||||||
endif (RESULT1 AND RESULT2 AND RESULT3 AND GLOBALRESULT AND
|
endif ()
|
||||||
DIRECTORYRESULT AND SOURCERESULT)
|
|
||||||
|
|
||||||
# test the target property
|
# test the target property
|
||||||
set_property(TARGET Properties PROPERTY TARGETTEST 1)
|
set_property(TARGET Properties PROPERTY TARGETTEST 1)
|
||||||
|
|
|
@ -81,8 +81,7 @@ if(BUILD_QtDialog AND "${CMAKE_GENERATOR}" MATCHES "${WIN_SHELL_GENS}"
|
||||||
string(REPLACE ";" "\\;" _PATH "PATH=${Qt_BIN_DIR};%PATH%")
|
string(REPLACE ";" "\\;" _PATH "PATH=${Qt_BIN_DIR};%PATH%")
|
||||||
set(cmake-gui-PATH COMMAND set "${_PATH}")
|
set(cmake-gui-PATH COMMAND set "${_PATH}")
|
||||||
endif()
|
endif()
|
||||||
endif(BUILD_QtDialog AND "${CMAKE_GENERATOR}" MATCHES "${WIN_SHELL_GENS}"
|
endif()
|
||||||
AND EXISTS "${QT_QMAKE_EXECUTABLE}" AND NOT CMAKE_NO_AUTO_QT_ENV)
|
|
||||||
|
|
||||||
# add the docs for the executables
|
# add the docs for the executables
|
||||||
ADD_DOCS(ctest ${CMake_SOURCE_DIR}/Utilities/Doxygen/authors.txt)
|
ADD_DOCS(ctest ${CMake_SOURCE_DIR}/Utilities/Doxygen/authors.txt)
|
||||||
|
|
Loading…
Reference in New Issue