Notes |
|
(0039526)
|
Nils Gladitz
|
2015-10-07 09:22
|
|
CheckFunctionExists checks if the symbol exists at link time.
I think vs2015 defines snprinf inline and hence does not export any such symbol to be found at link time.
Try using CheckSymbolExists instead. |
|
|
(0039527)
|
Garcia Sylvain
|
2015-10-07 09:52
|
|
|
|
(0039528)
|
Nils Gladitz
|
2015-10-07 10:05
|
|
CheckSymbolExists works for me:
--------------------------------------
cmake_minimum_required(VERSION 3.3)
include(CheckSymbolExists)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
message("[${HAVE_SNPRINTF}]")
message("[${CMAKE_CXX_COMPILER_VERSION}]")
--------------------------------------
...
[1]
[19.0.23026.0]
...
--------------------------------------
Maybe you still had results cached from a previous run? |
|
|
(0039529)
|
Garcia Sylvain
|
2015-10-07 10:10
|
|
Ok, my bad. It works !
Thank you and sorry for disruption. |
|
|
(0040604)
|
Robert Maynard
|
2016-03-07 09:12
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|