diff --git a/chapter01/CMakeLists.txt b/chapter01/CMakeLists.txt index 00694c6..958bfd2 100644 --- a/chapter01/CMakeLists.txt +++ b/chapter01/CMakeLists.txt @@ -35,7 +35,8 @@ if(CHAPTER1_PRINT_LANGUAGE_EXAMPLES) list(APPEND MYLIST "xyz") message(STATUS "Chapter1: MYLIST is: ${MYLIST}") - list(FIND MYLIST def ABC_INDEX) + #find the string abc in MYLIST and store it in ABC_INDEX + list(FIND MYLIST abc ABC_INDEX) list(GET MYLIST ${ABC_INDEX} ABC) message(STATUS "Chapter1: Index of 'def' in MYLIST is ${ABC_INDEX} the value at the index is '${ABC}'") diff --git a/chapter01/simple_executable/CMakeLists.txt b/chapter01/simple_executable/CMakeLists.txt index dbf0e38..301569f 100644 --- a/chapter01/simple_executable/CMakeLists.txt +++ b/chapter01/simple_executable/CMakeLists.txt @@ -13,7 +13,7 @@ project( LANGUAGES CXX) # Add an executable target named `chapter1` -add_executable(chapter1) +add_executable(ch1_simple_executable) # Add sources to the target `chapter1` -target_sources(chapter1 PRIVATE src/main.cpp) +target_sources(ch1_simple_executable PRIVATE src/main.cpp)