Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeList.txt error in first practice in "CMake Practice.pdf" #8

Open
willson-chen opened this issue Aug 29, 2019 · 0 comments
Open

Comments

@willson-chen
Copy link

/backup/t1/CMakeLists.txt

PROJECT (HELLO)
SET(SRC_LIST main.c)
MESSAGE(STATUS "This is BINARY dir " ${HELLO_BINARY_DIR})
MESSAGE(STATUS "This is SOURCE dir "${HELLO_SOURCE_DIR})
ADD_EXECUTABLE(hello SRC_LIST)

line 1: space after PROJECT is unnessary.
line 4: need no space before ${HELLO_SOURCE_DIR}, or there will be warning.
line 5: ${SRC_LIST} not SRC_LIST, or there will be an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant