mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 02:38:37 -06:00
Tests: Verify RunCMake.CommandLine ExplicitDirs source/build dirs
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
2
Tests/RunCMake/CommandLine/ExplicitDirs-B-S-stdout.txt
Normal file
2
Tests/RunCMake/CommandLine/ExplicitDirs-B-S-stdout.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
2
Tests/RunCMake/CommandLine/ExplicitDirs-B-arg-stdout.txt
Normal file
2
Tests/RunCMake/CommandLine/ExplicitDirs-B-arg-stdout.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
2
Tests/RunCMake/CommandLine/ExplicitDirs-S-B-stdout.txt
Normal file
2
Tests/RunCMake/CommandLine/ExplicitDirs-S-B-stdout.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirsMissing'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirsMissing/build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirsMissing'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirsMissing/build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirsMissing'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirsMissing/build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
2
Tests/RunCMake/CommandLine/ExplicitDirs-S-arg-stdout.txt
Normal file
2
Tests/RunCMake/CommandLine/ExplicitDirs-S-arg-stdout.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- CMAKE_SOURCE_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs'
|
||||||
|
-- CMAKE_BINARY_DIR='[^']*/Tests/RunCMake/CommandLine/ExplicitDirs-build'
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.14)
|
cmake_minimum_required(VERSION 3.14)
|
||||||
project(ExplicitDirs NONE)
|
project(ExplicitDirs NONE)
|
||||||
|
|
||||||
|
message(STATUS "CMAKE_SOURCE_DIR='${CMAKE_SOURCE_DIR}'")
|
||||||
|
message(STATUS "CMAKE_BINARY_DIR='${CMAKE_BINARY_DIR}'")
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT output1.txt
|
OUTPUT output1.txt
|
||||||
COMMAND ${CMAKE_COMMAND} -E echo CustomCommand > output1.txt
|
COMMAND ${CMAKE_COMMAND} -E echo CustomCommand > output1.txt
|
||||||
|
|||||||
@@ -140,6 +140,8 @@ project(ExplicitDirsMissing LANGUAGES NONE)
|
|||||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
||||||
message(FATAL_ERROR "CWD used as binary dir")
|
message(FATAL_ERROR "CWD used as binary dir")
|
||||||
endif()
|
endif()
|
||||||
|
message(STATUS "CMAKE_SOURCE_DIR='${CMAKE_SOURCE_DIR}'")
|
||||||
|
message(STATUS "CMAKE_BINARY_DIR='${CMAKE_BINARY_DIR}'")
|
||||||
]=])
|
]=])
|
||||||
|
|
||||||
file(REMOVE_RECURSE "${source_dir}/build")
|
file(REMOVE_RECURSE "${source_dir}/build")
|
||||||
|
|||||||
Reference in New Issue
Block a user