Skip to content

Commit

Permalink
cmake BUGFIX generating same paths in separate cmake lists
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed May 23, 2024
1 parent a5e5722 commit 62b399f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if(NETOPEER2_LIB_TESTS)
/**
* @brief Directory where to put test_files for the tests to work.
*/
#define NP2_TEST_FILE_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/modules\"
#define NP2_TEST_FILE_DIR \"${TEST_MODULE_DIR}\"
")
set(NETOPEER2_TESTS_FUNC "${NETOPEER2_TESTS_FUNC}
/**
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ set(TESTS ${TESTS} PARENT_SCOPE)
set(TEST_SRC ${TEST_SRC} PARENT_SCOPE)
set(TEST_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
set(TEST_BIN_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)
set(TEST_MODULE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/modules PARENT_SCOPE)

0 comments on commit 62b399f

Please sign in to comment.