Use absolute path to example file

This commit is contained in:
Arnav Borborah 2018-04-12 13:23:47 -04:00 committed by GitHub
parent ca6e9f70eb
commit 819492e080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,5 +7,5 @@ set(CMAKE_CXX_EXTENSIONS OFF)
find_package(cxxopts REQUIRED)
add_executable(library-test "../../src/example.cpp")
add_executable(library-test "${PROJECT_SOURCE_DIR}/src/example.cpp")
target_link_libraries(library-test cxxopts::cxxopts)