CMake: Use inherited dependencies in common and tools (partial pick, need help on this)

This commit is contained in:
Aokromes
2016-05-23 06:24:26 +02:00
parent beade4616a
commit 460a660d4f
6 changed files with 124 additions and 59 deletions

View File

@@ -12,8 +12,6 @@
# This to stop a few silly crashes that could have been avoided IF people
# weren't doing some -O3 psychooptimizations etc.
find_package(MySQL REQUIRED)
if(CMAKE_COMPILER_IS_GNUCXX AND NOT MINGW)
add_definitions(-fno-delete-null-pointer-checks)
endif()

View File

@@ -8,10 +8,6 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
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})
endif()