add cmake build type debug/release restriction

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@479 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2007-06-29 15:11:57 +00:00
commit 294e2164af
3 changed files with 8 additions and 2 deletions

View file

@ -90,6 +90,8 @@ ELSEIF(WIN32)
TARGET_LINK_LIBRARIES(hill_climbing tsp)
TARGET_LINK_LIBRARIES(hill_climbing eo)
TARGET_LINK_LIBRARIES(hill_climbing 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

@ -89,7 +89,9 @@ ELSEIF(WIN32)
ELSEIF(CMAKE_BUILD_TYPE STREQUAL Release)
TARGET_LINK_LIBRARIES(tabu_search tsp)
TARGET_LINK_LIBRARIES(tabu_search eo)
TARGET_LINK_LIBRARIES(tabu_search eoutils)
TARGET_LINK_LIBRARIES(tabu_search 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

@ -89,7 +89,9 @@ ELSEIF(WIN32)
ELSEIF(CMAKE_BUILD_TYPE STREQUAL Release)
TARGET_LINK_LIBRARIES(simulated_annealing tsp)
TARGET_LINK_LIBRARIES(simulated_annealing eo)
TARGET_LINK_LIBRARIES(simulated_annealing eoutils)
TARGET_LINK_LIBRARIES(simulated_annealing 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)