Avoid a CMake warning about 3rdparty looking like a number.

This commit is contained in:
Robin Sommer 2013-05-15 15:35:38 -07:00
parent d7df8cec24
commit 4a134872d5

View file

@ -226,6 +226,10 @@ binpac_target(modbus.pac
find_package (Threads)
# Avoid CMake warning about "3rdparty" looking like a number.
cmake_policy(PUSH)
cmake_policy(SET CMP0012 NEW)
# This macro stores associated headers for any C/C++ source files given
# as arguments (past _var) as a list in the CMake variable named "_var".
macro(COLLECT_HEADERS _var)
@ -245,6 +249,8 @@ macro(COLLECT_HEADERS _var)
endforeach ()
endmacro(COLLECT_HEADERS _var)
cmake_policy(POP)
# define a command that's used to run the make_dbg_constants.pl script
# building the bro binary depends on the outputs of this script
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/DebugCmdConstants.h
@ -449,7 +455,7 @@ set(bro_SRCS
input/readers/Benchmark.cc
input/readers/SQLite.cc
3rdparty/sqlite3.c
"3rdparty/sqlite3.c"
nb_dns.c
digest.h