CMake: call cmake_minimum_required before project
authorPeter Wu <peter@lekensteyn.nl>
Sun, 18 Nov 2018 02:14:42 +0000 (03:14 +0100)
committerAnders Broman <a.broman58@gmail.com>
Sun, 18 Nov 2018 07:20:41 +0000 (07:20 +0000)
commit923d719f2b64a7fedc4ff06561e20e28c42a5c3c
tree904c93591e1cdc802a3d6a9b5fe24b09b8226fd8
parent93361b9977522070bd41e830965043734f5bb539
CMake: call cmake_minimum_required before project

cmake_minimum_required() MUST be called even before project(), otherwise
some policies will not be correctly set. On the macOS build on Travis
for example, CMP0025 was accidentally set to "OLD" which resulted in
CMAKE_C_COMPILER_ID being reported as "Clang" instead of "AppleClang".

Change-Id: I20065e621628cde24946edb519d719f527936d87
Reviewed-on: https://code.wireshark.org/review/30685
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
CMakeLists.txt