CMakeLists: Only link LLVM libs against the library
LLVM library code is only used within the main dynarmic library, not the test executable.
This commit is contained in:
parent
d85137ed65
commit
5a02da445a
2 changed files with 8 additions and 3 deletions
|
@ -109,8 +109,13 @@ target_include_directories(dynarmic
|
||||||
PUBLIC ../include
|
PUBLIC ../include
|
||||||
PRIVATE .)
|
PRIVATE .)
|
||||||
target_compile_options(dynarmic PRIVATE ${DYNARMIC_CXX_FLAGS})
|
target_compile_options(dynarmic PRIVATE ${DYNARMIC_CXX_FLAGS})
|
||||||
|
target_link_libraries(dynarmic
|
||||||
target_link_libraries(dynarmic PRIVATE boost fmt-header-only xbyak)
|
PRIVATE
|
||||||
|
boost
|
||||||
|
fmt-header-only
|
||||||
|
xbyak
|
||||||
|
$<$<BOOL:DYNARMIC_USE_LLVM>:${llvm_libs}>
|
||||||
|
)
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
target_compile_definitions(dynarmic PRIVATE FMT_USE_WINDOWS_H=0)
|
target_compile_definitions(dynarmic PRIVATE FMT_USE_WINDOWS_H=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -35,7 +35,7 @@ include(CreateDirectoryGroups)
|
||||||
create_directory_groups(${SRCS} ${HEADERS})
|
create_directory_groups(${SRCS} ${HEADERS})
|
||||||
|
|
||||||
add_executable(dynarmic_tests ${SRCS})
|
add_executable(dynarmic_tests ${SRCS})
|
||||||
target_link_libraries(dynarmic_tests PRIVATE dynarmic boost catch ${llvm_libs})
|
target_link_libraries(dynarmic_tests PRIVATE dynarmic boost catch)
|
||||||
target_include_directories(dynarmic_tests PRIVATE . ../src)
|
target_include_directories(dynarmic_tests PRIVATE . ../src)
|
||||||
target_compile_options(dynarmic_tests PRIVATE ${DYNARMIC_CXX_FLAGS})
|
target_compile_options(dynarmic_tests PRIVATE ${DYNARMIC_CXX_FLAGS})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue