remove main from target_link_libraries, since we dont want to link a library called main with my_project

master
Andreas Stallinger 5 年前
父节点
当前提交
bb37af968c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Working-with-CMake.md

+ 1
- 1
Working-with-CMake.md

@ -10,7 +10,7 @@ set(CMAKE_C_STANDARD 11)
add_executable(my_project main.c) add_executable(my_project main.c)
target_link_libraries(my_project main raylib)
target_link_libraries(my_project raylib)
``` ```
To build, use these commands: To build, use these commands:
```cmake ```cmake

正在加载...
取消
保存