mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-02 04:20:05 +02:00
Fix some parameter lists.
With this commit it is possible to build LDC/LDC2 with MSVC via CMake.
This commit is contained in:
@@ -94,7 +94,7 @@ set_target_properties(
|
|||||||
idgen impcnvgen PROPERTIES
|
idgen impcnvgen PROPERTIES
|
||||||
LINKER_LANGUAGE CXX
|
LINKER_LANGUAGE CXX
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${DMDFE_PATH}
|
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${DMDFE_PATH}
|
||||||
COMPILE_FLAGS ${LLVM_CXXFLAGS}
|
COMPILE_FLAGS "${LLVM_CXXFLAGS}"
|
||||||
)
|
)
|
||||||
get_target_property(IDGEN_LOC idgen LOCATION)
|
get_target_property(IDGEN_LOC idgen LOCATION)
|
||||||
get_target_property(IMPCNVGEN_LOC impcnvgen LOCATION)
|
get_target_property(IMPCNVGEN_LOC impcnvgen LOCATION)
|
||||||
@@ -317,7 +317,7 @@ set_target_properties(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# LDFLAGS should actually be in target property LINK_FLAGS, but this works, and gets around linking problems
|
# LDFLAGS should actually be in target property LINK_FLAGS, but this works, and gets around linking problems
|
||||||
target_link_libraries(${LDC_LIB} "${LLVM_LDFLAGS} ${LLVM_LIBRARIES}")
|
target_link_libraries(${LDC_LIB} ${LLVM_LDFLAGS} ${LLVM_LIBRARIES})
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_link_libraries(${LDC_LIB} imagehlp psapi)
|
target_link_libraries(${LDC_LIB} imagehlp psapi)
|
||||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
|||||||
Reference in New Issue
Block a user