]> granicus.if.org Git - libjpeg-turbo/commitdiff
Print error message if trying to do a native Unix build
authorDRC <dcommander@users.sourceforge.net>
Fri, 15 Oct 2010 19:11:11 +0000 (19:11 +0000)
committerDRC <dcommander@users.sourceforge.net>
Fri, 15 Oct 2010 19:11:11 +0000 (19:11 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@264 632fc199-4ca6-4c93-a231-07263d6284db

CMakeLists.txt

index c0638ceb421136e4d89f3bca5bd74dc62e8550dc..52d50f8cc115bf2a781ec1ffa45dc52c78cb3a38 100644 (file)
@@ -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)