Merge pull request #231 from udnaan/next

fixed cmake build if built as  part of an external project
This commit is contained in:
Robert Edmonds 2016-08-24 20:18:13 -07:00 committed by GitHub
commit 6503d2fb0f

View File

@ -21,7 +21,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244")
ENDIF()
get_filename_component(MAIN_DIR ${CMAKE_SOURCE_DIR} PATH)
get_filename_component(MAIN_DIR ${CMAKE_CURRENT_SOURCE_DIR} PATH)
SET(TEST_DIR ${MAIN_DIR}/t)
MESSAGE(${MAIN_DIR})