Don't compile sources twice.

Not sure why it would compile them twice if they are set to PUBLIC, but okay. 🤷
This commit is contained in:
tastytea 2021-05-31 17:24:08 +02:00
parent 78ada56226
commit cf583c6d7f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ file(GLOB headers_src CONFIGURE_DEPENDS *.hpp)
list(REMOVE_ITEM sources_src "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp")
target_sources(${PROJECT_NAME}_lib
PUBLIC "${sources_src}" "${headers_src}")
PRIVATE "${sources_src}" "${headers_src}")
unset(sources_src)
unset(headers_src)