add cmake build type debug/release restriction

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@480 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2007-06-29 15:12:13 +00:00
commit a398cd4e3d
3 changed files with 6 additions and 0 deletions

View file

@ -103,6 +103,8 @@ ELSEIF(WIN32)
TARGET_LINK_LIBRARIES(FlowShopEA flowshop)
TARGET_LINK_LIBRARIES(FlowShopEA eo)
TARGET_LINK_LIBRARIES(FlowShopEA eoutils)
ELSE(CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE(FATAL_ERROR " Cmake build type can only be \"Debug\" or \"Release\" ")
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
ENDIF(UNIX)

View file

@ -102,6 +102,8 @@ ELSEIF(WIN32)
ELSEIF(CMAKE_BUILD_TYPE STREQUAL Release)
TARGET_LINK_LIBRARIES(flowshop moeo)
TARGET_LINK_LIBRARIES(flowshop eo)
ELSE(CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE(FATAL_ERROR " Cmake build type can only be \"Debug\" or \"Release\" ")
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
ENDIF(UNIX)

View file

@ -88,6 +88,8 @@ ELSEIF(WIN32)
TARGET_LINK_LIBRARIES(sch1 moeo)
TARGET_LINK_LIBRARIES(sch1 eo)
TARGET_LINK_LIBRARIES(sch1 eoutils)
ELSE(CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE(FATAL_ERROR " Cmake build type can only be \"Debug\" or \"Release\" ")
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
ENDIF(UNIX)