Skip to content

Commit

Permalink
cmake: remove uneeded add_dependencies.
Browse files Browse the repository at this point in the history
CMake Warning (dev) at greenscript/examples/greenmessage-configset/CMakeLists.txt:20 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "greenmessage-configset" of target "compile_test"
  does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

Signed-off-by: Guillaume Delbergue <[email protected]>
  • Loading branch information
Guillaume Delbergue authored and konrad-fred committed Apr 27, 2015
1 parent 2ef6d2e commit 73738fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions greenscript/examples/greenmessage-configset/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ add_test(NAME COMPILATION:_${EXECUTABLE}
add_test(NAME DIFF:_${EXECUTABLE}
COMMAND ${CMAKE_COMMAND} -E compare_files executable_output.txt
${CMAKE_CURRENT_SOURCE_DIR}/expected_output.txt)

add_dependencies(compile_test ${EXECUTABLE})
2 changes: 0 additions & 2 deletions greenscript/examples/greenmessage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/system.py

add_test(NAME COMPILATION:_${EXECUTABLE}
COMMAND sh -c "export PYTHONPATH=$ENV{PYTHONPATH} && python system.py")

add_dependencies(compile_test ${EXECUTABLE})

0 comments on commit 73738fb

Please sign in to comment.