Skip to content

Commit

Permalink
test_install can not use the header only interface!
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Apr 4, 2022
1 parent 1611608 commit 45b52eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ add_executable(another_main another_main.cpp)
target_link_libraries(another_main PRIVATE project_options project_warnings)

## dependencies
#XXX set(DEPENDENCIES_CONFIGURED myproj)
set(DEPENDENCIES_CONFIGURED myproj_header_only_lib myproj)
set(DEPENDENCIES_CONFIGURED myproj)
#TODO(CK) set(DEPENDENCIES_CONFIGURED myproj_header_only_lib myproj)

foreach(DEPENDENCY ${DEPENDENCIES_CONFIGURED})
find_package(${DEPENDENCY} CONFIG REQUIRED)
endforeach()

#XXX target_link_libraries(another_main PRIVATE myproj::lib myproj::lib2)
target_link_libraries(another_main PRIVATE myproj_header_only_lib::lib myproj::lib2)
target_link_libraries(another_main PRIVATE myproj::lib myproj::lib2)
#TODO(CK) target_link_libraries(another_main PRIVATE myproj_header_only_lib::lib myproj::lib2)

# tests
enable_testing()
Expand Down

0 comments on commit 45b52eb

Please sign in to comment.