Skip to content

Commit

Permalink
remove libshogun example from all target, tests, and installation
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Mar 19, 2018
1 parent 499d189 commit f2802ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions cmake/ShogunUtils.cmake
Expand Up @@ -104,7 +104,7 @@ ENDMACRO()
MACRO(AddLibShogunExample EXAMPLE_CPP)
STRING(REGEX REPLACE ".cpp\$" "" EXAMPLE "${EXAMPLE_CPP}")

add_executable(${EXAMPLE} ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE_CPP})
add_executable(${EXAMPLE} EXCLUDE_FROM_ALL ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE_CPP})
if(WIN32)
target_link_libraries(${EXAMPLE} shogun::shogun-static ${SANITIZER_LIBRARY})
else()
Expand All @@ -113,7 +113,6 @@ MACRO(AddLibShogunExample EXAMPLE_CPP)
IF(SANITIZER_FLAGS)
set_target_properties(${EXAMPLE} PROPERTIES COMPILE_FLAGS ${SANITIZER_FLAGS})
ENDIF()
add_test(libshogun-${EXAMPLE} ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE})

# Add examples to the dependencies of modular interfaces to make sure
# nothing will infer with them being build single-threaded.
Expand Down
4 changes: 0 additions & 4 deletions examples/undocumented/libshogun/CMakeLists.txt
Expand Up @@ -50,7 +50,3 @@ FOREACH(EXAMPLE_CPP ${EXAMPLES_CPP})
AddLibShogunExample(${EXAMPLE_CPP})
LIST(APPEND EXAMPLE_TARGETS ${EXAMPLE})
ENDFOREACH()

INSTALL(TARGETS ${EXAMPLE_TARGETS}
DESTINATION share/shogun/examples/libshogun
COMPONENT libshogun-examples)

0 comments on commit f2802ba

Please sign in to comment.