CMakeLists: Make boost an interface library target

Gets rid of the use of a non-target include and makes libraries
explicitly link against the identifier name in order to get includes.
This commit is contained in:
Lioncash 2017-03-03 22:09:28 -05:00 committed by Merry
parent 6396bd02f0
commit 9906be746f
5 changed files with 7 additions and 8 deletions

View file

@ -111,9 +111,7 @@ target_include_directories(dynarmic
PRIVATE .)
target_compile_options(dynarmic PRIVATE ${DYNARMIC_CXX_FLAGS})
# Link fmt
target_link_libraries(dynarmic PRIVATE fmt-header-only)
target_link_libraries(dynarmic PRIVATE boost fmt-header-only xbyak)
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_compile_definitions(dynarmic PRIVATE FMT_USE_WINDOWS_H=0)
endif()
target_link_libraries(dynarmic PRIVATE xbyak)