Skip to content

Commit

Permalink
Use better nice_target_sources function.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Dec 3, 2019
1 parent aee02d8 commit 5295595
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ init_target(lib_storage)

get_filename_component(src_loc . REALPATH)

set(lib_storage_sources
target_precompile_headers(lib_storage PRIVATE ${src_loc}/storage/storage_pch.h)
nice_target_sources(lib_storage ${src_loc}
PRIVATE
storage/storage_clear_legacy.cpp
storage/storage_clear_legacy_posix.cpp
Expand All @@ -37,9 +38,6 @@ PRIVATE
storage/storage_clear_legacy_posix.cpp
storage/storage_clear_legacy_win.cpp
)
nice_target_sources(lib_storage ${src_loc} "${lib_storage_sources}")

target_precompile_headers(lib_storage PRIVATE ${src_loc}/storage/storage_pch.h)

target_include_directories(lib_storage
PUBLIC
Expand Down

0 comments on commit 5295595

Please sign in to comment.