Changed skip into error (#3698)

Problem:
if common fails target map/char/login will be disabled.

Solution:
if common fails stop cmake execution and throw an error, this will avoid building only mapcache and common_base.
This commit is contained in:
norm 2019-01-30 00:05:32 +01:00 committed by Lemongrass3110
parent d75fab086b
commit de8c707f07

View File

@ -188,6 +188,5 @@ set( HAVE_common ON CACHE INTERNAL "" )
set( TARGET_LIST ${TARGET_LIST} common CACHE INTERNAL "" )
message( STATUS "Creating target common - done" )
else()
message( STATUS "Skipping target common (requires common_base and MYSQL)" )
unset( HAVE_common CACHE )
message( FATAL_ERROR "Stopping target common (requires common_base and MYSQL)" )
endif()