I have an older 3rd party (that is no longer supported) cmake file, that relies
on the CMP0053 OLD setting
Since I have moved to 3.12, Im getting the warning that its deprecated etc...
SC_CHECK_BROKEN_FUNC(
strstr "
extern int strstr();
exit(strstr(\"\\\0test\", \"test\") ? 1 : 0);"
)
However, when I turn the policy to "NEW" it errors out with
Syntax error in cmake code at when parsing string
extern int strstr();
exit(strstr(\"\\\0test\", \"test\") ? 1 : 0);
Invalid character escape '\0'.
However, that is the whole test, ie that the escaped 0 check works.
How should I change the strings generation so it works with the new policy?
Scott
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake