Build cling.exe on Windows using the CMake object libraries
This allows to export the symbols from the executable, using the next version of CMake (not yet in the git master version of CMake)
This commit is contained in:
parent
0d24d146df
commit
79c8fc1d7c
@ -10,18 +10,23 @@
|
||||
set(LLVM_NO_DEAD_STRIP 1)
|
||||
|
||||
add_cling_executable(cling
|
||||
cling.cpp)
|
||||
cling.cpp
|
||||
$<TARGET_OBJECTS:obj.clingInterpreter>
|
||||
$<TARGET_OBJECTS:obj.clingMetaProcessor>
|
||||
$<TARGET_OBJECTS:obj.clingUtils>
|
||||
)
|
||||
|
||||
set_target_properties(cling
|
||||
PROPERTIES ENABLE_EXPORTS 1)
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(cling
|
||||
PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS 1)
|
||||
endif(MSVC)
|
||||
|
||||
target_link_libraries(cling
|
||||
LLVMSupport
|
||||
|
||||
clingUserInterface
|
||||
clingMetaProcessor
|
||||
clingInterpreter
|
||||
clingUtils
|
||||
)
|
||||
|
||||
install(TARGETS cling
|
||||
|
Loading…
x
Reference in New Issue
Block a user