From: DRC Date: Fri, 15 Oct 2010 19:11:11 +0000 (+0000) Subject: Print error message if trying to do a native Unix build X-Git-Tag: 1.0.90~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=378da4d61b3f0eef60dc55b43e0f91555b02e834;p=libjpeg-turbo Print error message if trying to do a native Unix build git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@264 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c0638ce..52d50f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 2.6) project(libjpeg-turbo) set(VERSION 1.0.80) -if(UNIX OR MINGW OR CYGWIN) +if(MINGW OR CYGWIN) execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE BUILD) string(REGEX REPLACE "\n" "" BUILD ${BUILD}) elseif(WIN32) @@ -15,7 +15,7 @@ elseif(WIN32) OUTPUT_VARIABLE BUILD) string(REGEX REPLACE "\n" "" BUILD ${BUILD}) else() - message(FATAL_ERROR "date not implemented") + message(FATAL_ERROR "Platform not supported by this build system. Use autotools instead.") endif() if(NOT CMAKE_BUILD_TYPE)