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:
parent
78ada56226
commit
cf583c6d7f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user