mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Tests: Add RunCMake.try_compile case covering empty value arguments
This commit is contained in:
1
Tests/RunCMake/try_compile/EmptyValueArgs-result.txt
Normal file
1
Tests/RunCMake/try_compile/EmptyValueArgs-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
9
Tests/RunCMake/try_compile/EmptyValueArgs-stderr.txt
Normal file
9
Tests/RunCMake/try_compile/EmptyValueArgs-stderr.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
CMake Error at EmptyValueArgs.cmake:[0-9]+ \(try_compile\):
|
||||
COPY_FILE must be followed by a file path
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:[0-9]+ \(include\)
|
||||
+
|
||||
CMake Error at EmptyValueArgs.cmake:[0-9]+ \(try_compile\):
|
||||
COPY_FILE_ERROR must be followed by a variable name
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:[0-9]+ \(include\)
|
||||
4
Tests/RunCMake/try_compile/EmptyValueArgs.cmake
Normal file
4
Tests/RunCMake/try_compile/EmptyValueArgs.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
try_compile(RESULT ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||||
COPY_FILE "")
|
||||
try_compile(RESULT ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||||
COPY_FILE "x" COPY_FILE_ERROR "")
|
||||
@@ -17,6 +17,7 @@ run_cmake(NonSourceCopyFile)
|
||||
run_cmake(NonSourceCompileDefinitions)
|
||||
run_cmake(BinDirEmpty)
|
||||
run_cmake(BinDirRelative)
|
||||
run_cmake(EmptyValueArgs)
|
||||
run_cmake(EmptyListArgs)
|
||||
|
||||
run_cmake(EnvConfig)
|
||||
|
||||
Reference in New Issue
Block a user