Use absolute path for project

This commit is contained in:
Arnav Borborah 2018-04-12 13:25:19 -04:00 committed by GitHub
parent a7a09535ec
commit 9ee500461c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ project(cxxopts-test)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
add_subdirectory(../.. cxxopts EXCLUDE_FROM_ALL)
add_subdirectory(${PROJECT_SOURCE_DIR} cxxopts EXCLUDE_FROM_ALL)
add_executable(library-test "${PROJECT_SOURCE_DIR}/src/example.cpp")
target_link_libraries(library-test cxxopts)