diff options
author | Arkadiy Paronyan <arkady.paronyan@gmail.com> | 2015-08-25 22:28:08 +0800 |
---|---|---|
committer | Arkadiy Paronyan <arkady.paronyan@gmail.com> | 2015-08-25 22:28:08 +0800 |
commit | 66552f46a617a4881ad1578d9cdcadf3635d60f2 (patch) | |
tree | c972b697d071434995f27c8d03d9a11a2e23c8e3 /test | |
parent | 40e65295ffc4678d5d316eb7c5243858e4822f7b (diff) | |
parent | e4858023be33ad1b5e1a43b91c1b5e2d6251b8ea (diff) | |
download | dexon-solidity-66552f46a617a4881ad1578d9cdcadf3635d60f2.tar.gz dexon-solidity-66552f46a617a4881ad1578d9cdcadf3635d60f2.tar.zst dexon-solidity-66552f46a617a4881ad1578d9cdcadf3635d60f2.zip |
Merge pull request #29 from ethereum/cmake-add_sources
Fix "add_sources" cmake macro
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a7e27414..25120c89 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,8 +2,10 @@ cmake_policy(SET CMP0015 NEW) aux_source_directory(. SRC_LIST) +get_filename_component(TESTS_DIR "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) + macro (add_sources) - file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}/test" "${CMAKE_CURRENT_SOURCE_DIR}") + file (RELATIVE_PATH _relPath ${TESTS_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) foreach (_src ${ARGN}) if (_relPath) list (APPEND SRC "${_relPath}/${_src}") |