Re: [CMake] Subdirectory can't find library made by another subdir

2018-11-28 Thread Manh Nguyen Tien
I solved it: https://gitlab.kitware.com/cmake/cmake/issues/18648 On 11/28/18 11:46 AM, Manh Nguyen Tien wrote: > Hi everyone, I'm having a bug on CMake 3.12 (version and syntax). > > Here is my structure. > > > RootFolder > >     CMakeLists.txt (C1) > >     library/ > >         CMakeLists.txt (C2)

[CMake] Subdirectory can't find library made by another subdir

2018-11-27 Thread Manh Nguyen Tien
Hi everyone, I'm having a bug on CMake 3.12 (version and syntax). Here is my structure. RootFolder     CMakeLists.txt (C1)     library/         CMakeLists.txt (C2)     samples/         CMakeLists.txt (C3) In my C1, I add subdir library and samples. C2 builds a library target (LIB). My pr