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:
parent
294e2164af
commit
a398cd4e3d
3 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue