From 847ad97364009dbf0fcd4a4f59ed737a9ecc5ef6 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 18 Nov 2010 21:36:21 +0100 Subject: [PATCH] Changed: Use optimized and debug keywords only if both are found --- code/CMakeModules/FindLuabind.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/CMakeModules/FindLuabind.cmake b/code/CMakeModules/FindLuabind.cmake index ff51f177a..bf795271e 100644 --- a/code/CMakeModules/FindLuabind.cmake +++ b/code/CMakeModules/FindLuabind.cmake @@ -65,9 +65,10 @@ IF(LUABIND_INCLUDE_DIR AND Boost_INCLUDE_DIR) IF(LUABIND_LIBRARY_RELEASE) SET(LUABIND_FOUND TRUE) SET(LUABIND_INCLUDE_DIR ${LUABIND_INCLUDE_DIR} ${Boost_INCLUDE_DIR}) - SET(LUABIND_LIBRARIES "optimized;${LUABIND_LIBRARY_RELEASE}") IF(LUABIND_LIBRARY_DEBUG) - SET(LUABIND_LIBRARIES "${LUABIND_LIBRARIES};debug;${LUABIND_LIBRARY_DEBUG}") + SET(LUABIND_LIBRARIES "optimized;${LUABIND_LIBRARY_RELEASE};debug;${LUABIND_LIBRARY_DEBUG}") + ELSE(LUABIND_LIBRARY_DEBUG) + SET(LUABIND_LIBRARIES "${LUABIND_LIBRARY_RELEASE}") ENDIF(LUABIND_LIBRARY_DEBUG) ENDIF(LUABIND_LIBRARY_RELEASE) ENDIF(LUABIND_INCLUDE_DIR AND Boost_INCLUDE_DIR)