On 12/04/2015 02:14 PM, Johnson, Hans J wrote:
> PERFORM_CMAKE_TEST(vxl_platform_tests.cxx VCL_STATIC_CONST_INIT_FLOAT)
> NOTE: THIS FAILS WHEN IT SHOULD PASS!
[snip]
> Should I simply add -DCMAKE_CXX_STANDARD:STRING=${CMAKE_CXX_STANDARD}
> to the TRY_COMPILE? The seems too simplistic.
I think that is all that is needed but have not thought this through
in detail. Here is a related issue:
https://cmake.org/Bug/view.php?id=15361#c37760
Eventually a similar fix will be needed for all CMake's builtin
check modules. Perhaps even try_compile itself will need new
options to specify the language dialect, defaulting to the
CMAKE_<LANG>_STANDARD variable if set.
-Brad
--
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:
http://public.kitware.com/mailman/listinfo/cmake