I have a very strange warning which appears when i run ctest :
Syntax Warning in cmake code at
my_build_path/CTestTestfile.cmake:7:10
A future version of CMake may treat unquoted argument:
[=[myTest]=]
as an opening long bracket. Double-quote the argument.
Call Stack (most recent call first):
CTestTestfile.cmake:10 (subdirs)
This warning is for project developers. Use -Wno-dev to suppress it.
It's look like all my test name have the same problem, cmake add [=[ ]=] before and after all my tests. Here results of ctest -N
Test #1: [=[myTest1]=]
Test #2: [=[myTest2]=]
Test #3: [=[myTest3]=]
Test #4: [=[myTest4]=]
Test #5: [=[myTest5]=]
Test #6: [=[myTest6]=]
Test #7: [=[myTest7]=]
Test #8: [=[myTest8]=]
Test #9: [=[myTest9]=]
Test #10: [=[myTest10]=]
Test #11: [=[myTest11]=]
Here my code :
find_package(Python COMPONENTS Interpreter Development)
add_test(NAME myTest
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
I don't know how to resolve this issue or how to to disable ctest warnings. I know only disable compilation warnings.