diff options
author | Naios <naios-dev@live.de> | 2015-10-05 16:14:31 +0200 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2015-10-05 17:12:00 +0200 |
commit | 45a60c2d22a93f6196491a0eb0478d05795e310f (patch) | |
tree | 28d6d6ddc56ecdb01f805be8e2c8814c011f7488 /src | |
parent | a561edefb90af25864aeb7ca7fc48fe0364df765 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/database/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/database/CMakeLists.txt b/src/server/database/CMakeLists.txt index 2375f18d7b5..19fa0ee0acf 100644 --- a/src/server/database/CMakeLists.txt +++ b/src/server/database/CMakeLists.txt @@ -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}) |