Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何强制 proj4 构建 proj.dll 而不是 proj_4_9.dll,包括使用 cmake 的版本?
我尝试过了
set(OUTPUT_NAME "proj" CACHE STRING "") set(PROJ_CORE_TARGET "proj" CACHE STRING "") set(PROJ_CORE_TARGET_OUTPUT_NAME "proj" CACHE STRING "")
手动覆盖它。然而……没有用。
您可以像这样设置目标的名称:
set_target_properties(proj_4_9 PROPERTIES OUTPUT_NAME "proj")