Skip to content

Commit

Permalink
Do not list files in CMake add_library INTERFACE
Browse files Browse the repository at this point in the history
This is a feature introduced by CMake 3.19, which is a bit too recent.
A separate target_sources command has the same result.

Signed-off-by: Erik Boasson <eb@ilities.com>
  • Loading branch information
eboasson committed Jun 30, 2021
1 parent 0e43bb1 commit 7bc4326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/security/api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ set(headers
dds_security_api_types.h)
prepend(headers "${CMAKE_CURRENT_LIST_DIR}/include/dds/security" ${headers})

add_library(security_api INTERFACE ${headers})
add_library(security_api INTERFACE)
target_sources(security_api INTERFACE ${headers})

target_include_directories(
security_api INTERFACE
Expand Down

0 comments on commit 7bc4326

Please sign in to comment.