We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BUILD_DIR
1 parent 5355476 commit febe7c3Copy full SHA for febe7c3
tests/CMakeLists.txt
@@ -4,8 +4,6 @@ find_package(GTest)
4
5
add_executable(${PROJECT_NAME} directory.cpp file.cpp)
6
target_link_libraries(${PROJECT_NAME} tmp::tmp GTest::gtest_main)
7
-target_compile_definitions(${PROJECT_NAME}
8
- PRIVATE BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}")
9
10
# On some platforms (e.g. Windows) CMake doesn't write load paths properly
11
# This solution to put outputs in the same directory is good enough
tests/meson.build
@@ -5,9 +5,6 @@ unit_test = executable(
'directory.cpp',
'file.cpp',
dependencies: [gtest_main_dep, tmp_dep],
- cpp_args: [
- '-DBUILD_DIR="' + meson.current_build_dir() + '"',
- ],
build_by_default: false,
12
)
13
0 commit comments