Add error to CMakeList.txt on missing Boost. Fix if sample

This commit is contained in:
Jonathan Turner
2009-07-26 13:33:58 +00:00
parent 669d6e9495
commit 5b424be4ed
2 changed files with 3 additions and 1 deletions

View File

@@ -19,5 +19,7 @@ if (Boost_FOUND)
#add_executable(dispatchkit_test contrib/test/dispatchkit_test.cpp)
target_link_libraries(chaiscript_eval ${Boost_LIBRARIES})
install(TARGETS chaiscript_eval DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin)
else(Boost_FOUND)
message(FATAL_ERROR "Can not find Boost")
endif(Boost_FOUND)

View File

@@ -2,7 +2,7 @@ var i = 0
if (i == 0) {
print("i is 0")
}
elseif (i == 1) {
else if (i == 1) {
print("i is 1")
}
else {