You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The problem during Project mainSub manually compiling using CMake
Let's reinstate the environment of compiling problem!
1.Problem A
1.1Terminal output during compiling
CMake Error at petActive/CMakeLists.txt:3 (target_sources):
Cannot specify sources for target "PRIVATE" which is not built by this
project.
-- Configuring incomplete, errors occurred!
See also "/Users/marryme/VSCode/CppProject/mainSub/build/debug/CMakeFiles/CMakeOutput.log".
1.2Run Or Not
Not.
1.3Fix Or Not
Fix.
Add target"petActive" to "PRIVATE" under ~/petActive/CMakeLists.txt.
target_sources(petActive
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/source/Pet.cpp
PUBLIC
${CMAKE_CURRENT_LIST_DIR}/include/Pet.h
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters