Wireshark mailing list archives

Re: Doing test compiles in CMake to check whether to use particular compiler options


From: Guy Harris <guy () alum mit edu>
Date: Mon, 15 Jul 2013 19:07:54 -0700


On Jul 14, 2013, at 10:03 AM, Guy Harris <guy () alum mit edu> wrote:

Should try_compile() be used with CMake to test whether particular compiler options are supported by the C compiler, 
just as the autoconf script uses AC_COMPILE_IFELSE?  (Sadly, it appears that CMake would require that the test 
program be in a file of its own, rather than letting you embed it in the script, as autoconf does.)

Nope, it appears that CHECK_C_SOURCE_COMPILES() can take source code as an argument.  (I couldn't find the string 
"case-sensitive" in the CMake documentation, so I assume macro/function/etc. names are case-insensitive.)

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: