gadomski/cpd

CMake error

ahmedmaalej opened this issue · 1 comments

I build fgt following your instructions:
BUILD_SHARED_LIBS=OFF,
gtest_force_shared_crt=ON.
To avoid MSVC config mucking.
I get fgt.lib in Debug and Release modes when I build the fgt.sln (using ALL_BUILD as the starting project).
But when I try to build CPD, I keep getting this error when using CMake to compile CPD, even with disabling WITH_FGT option:

CMake Error at D:/CPD_cpp/fgt_build/fgt-config.cmake:1 (include):
include could not find load file:
D:/CPD_cpp/fgt_build/fgt-targets.cmake
Call Stack (most recent call first):
CMakeLists.txt:27 (find_package)

CMake Error at D:/CPD_cpp/fgt_build/fgt-config.cmake:1 (include):
include could not find load file:
D:/CPD_cpp/fgt_build/fgt-targets.cmake
Call Stack (most recent call first):
CMakeLists.txt:30 (find_package)

Any suggestions ?

Did you INSTALL FGT? The fgt-targets.cmake file might only be created/placed correctly during an install.