Mercurial > projects > ldc
comparison CMakeLists.txt @ 1107:015b1634b33f
Unquote ${LIBCONFIG_LDFLAGS} in target_link_libraries().
Without this change, LDC fails to link for me.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Thu, 12 Mar 2009 23:30:58 +0100 |
parents | cdb7e1167803 |
children | 123812e02bc8 |
comparison
equal
deleted
inserted
replaced
1106:feca4947d1f2 | 1107:015b1634b33f |
---|---|
209 RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin | 209 RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin |
210 COMPILE_FLAGS "${LLVM_CXXFLAGS} ${LIBCONFIG_CXXFLAGS} -Wno-deprecated -Wno-write-strings" | 210 COMPILE_FLAGS "${LLVM_CXXFLAGS} ${LIBCONFIG_CXXFLAGS} -Wno-deprecated -Wno-write-strings" |
211 ) | 211 ) |
212 | 212 |
213 # LDFLAGS should actually be in target property LINK_FLAGS, but this works, and gets around linking problems | 213 # LDFLAGS should actually be in target property LINK_FLAGS, but this works, and gets around linking problems |
214 target_link_libraries(${LDC_EXE} "${LLVM_LDFLAGS} ${LLVM_LIBS} ${LIBCONFIG_LDFLAGS}") | 214 target_link_libraries(${LDC_EXE} "${LLVM_LDFLAGS} ${LLVM_LIBS}" ${LIBCONFIG_LDFLAGS}) |
215 if(WIN32) | 215 if(WIN32) |
216 target_link_libraries(${LDC_EXE} psapi) | 216 target_link_libraries(${LDC_EXE} psapi) |
217 set(CONF_INST_DIR bin) | 217 set(CONF_INST_DIR bin) |
218 endif(WIN32) | 218 endif(WIN32) |
219 | 219 |