mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 09:53:54 +00:00
[CMake] llvm-c-test: Use libLLVM.so if it is available.
llvm-svn: 221592
This commit is contained in:
parent
009981aaa8
commit
f24eab3521
@ -7,6 +7,10 @@ set(LLVM_LINK_COMPONENTS
|
||||
Target
|
||||
)
|
||||
|
||||
if(TARGET LLVM)
|
||||
set(LLVM_LINK_COMPONENTS)
|
||||
endif()
|
||||
|
||||
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wstrict-prototypes")
|
||||
endif ()
|
||||
@ -21,3 +25,8 @@ add_llvm_tool(llvm-c-test
|
||||
object.c
|
||||
targets.c
|
||||
)
|
||||
|
||||
# Use libLLVM.so if it is available.
|
||||
if(TARGET LLVM)
|
||||
target_link_libraries(llvm-c-test LLVM)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user