CMake: Fix bad generation of "revision_data.h" not including MYSQL_EXECUTABLE.

* was caused through invoking "FindMySQL" after using ${MYSQL_EXECUTABLE}.
* better re-run CMake if you are affected by the mysql exe wasn't found issue.

(cherry picked from commit 45a60c2d22)
This commit is contained in:
Naios
2015-10-05 16:14:31 +02:00
parent 02ab60a133
commit 1bce131bdc
2 changed files with 4 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ set(OPENSSL_EXPECTED_VERSION 1.0.0)
find_package(PCHSupport)
find_package(OpenSSL REQUIRED)
find_package(Threads REQUIRED)
find_package(MySQL)
include(ConfigureBoost)

View File

@@ -8,7 +8,9 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
find_package(MySQL REQUIRED)
if (NOT MYSQL_FOUND)
message(SEND_ERROR "MySQL wasn't found on your system but it's required to build the servers!")
endif()
if( USE_COREPCH )
include_directories(${CMAKE_CURRENT_BINARY_DIR})