I first build the ROOT v6.26/06 on my ubuntu18.04
like this
git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src
cmake -DCMAKE_INSTALL_PREFIX=/data3/ROOT/root_install -Dall=ON /data3/ROOT/root_src/
cmake --build . --target install -j30
then, build the example with_cmake in this repository:
. /data3/ROOT/root_install/bin/thisroot.sh
git clone https://github.com/eguiraud/root_dictionaries_tutorial
mkdir root_dictionaries_tutorial/with_cmake/build
cd root_dictionaries_tutorial/with_cmake/build
cmake ../
then I get CMake Error:
-- Looking for ROOT
-- ROOT 6.26.06 found at /data3/ROOT/root_install/bin
-- Configuring done
CMake Error at /data3/ROOT/root_install/cmake/RootMacros.cmake:642 (add_custom_command):
Error evaluating generator expression:
$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:readwrite_twoints,INTERFACE_SYSTEM_INCLUDE_DIRECTORIES>>
Expression did not evaluate to a known generator expression
Call Stack (most recent call first):
CMakeLists.txt:15 (ROOT_GENERATE_DICTIONARY)
CMake Error at /data3/ROOT/root_install/cmake/RootMacros.cmake:642 (add_custom_command):
Error evaluating generator expression:
$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:readwrite_twoints,INCLUDE_DIRECTORIES>>
Expression did not evaluate to a known generator expression
Call Stack (most recent call first):
CMakeLists.txt:15 (ROOT_GENERATE_DICTIONARY)
CMake Error at /data3/ROOT/root_install/cmake/RootMacros.cmake:642 (add_custom_command):
Error evaluating generator expression:
$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:readwrite_twoints,INTERFACE_SYSTEM_INCLUDE_DIRECTORIES>>
Expression did not evaluate to a known generator expression
Call Stack (most recent call first):
CMakeLists.txt:15 (ROOT_GENERATE_DICTIONARY)
CMake Error at /data3/ROOT/root_install/cmake/RootMacros.cmake:642 (add_custom_command):
Error evaluating generator expression:
$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:readwrite_twoints,INCLUDE_DIRECTORIES>>
Expression did not evaluate to a known generator expression
Call Stack (most recent call first):
CMakeLists.txt:15 (ROOT_GENERATE_DICTIONARY)
CMake Error at /data3/ROOT/root_install/cmake/RootMacros.cmake:642 (add_custom_command):
Error evaluating generator expression:
$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:readwrite_twoints,INTERFACE_SYSTEM_INCLUDE_DIRECTORIES>>
Expression did not evaluate to a known generator expression
Call Stack (most recent call first):
CMakeLists.txt:15 (ROOT_GENERATE_DICTIONARY)
CMake Error at /data3/ROOT/root_install/cmake/RootMacros.cmake:642 (add_custom_command):
Error evaluating generator expression:
$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:readwrite_twoints,INCLUDE_DIRECTORIES>>
Expression did not evaluate to a known generator expression
Call Stack (most recent call first):
CMakeLists.txt:15 (ROOT_GENERATE_DICTIONARY)
-- Generating done
-- Build files have been written to: /data3/ROOT/About_Dict_Cmake/root_dictionaries_tutorial/with_cmake/build
I can continue to make and run this example, but this CMake Error makes me very comfused. I'm not familiar with CMake, so I need some help, any comment will be helpful, thanks!
By the way, it will no CMake Error if I use ROOT 6.22/06.
I first build the ROOT v6.26/06 on my ubuntu18.04
like this
git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src cmake -DCMAKE_INSTALL_PREFIX=/data3/ROOT/root_install -Dall=ON /data3/ROOT/root_src/ cmake --build . --target install -j30then, build the example
with_cmakein this repository:then I get
CMake Error:I can continue to make and run this example, but this
CMake Errormakes me very comfused. I'm not familiar with CMake, so I need some help, any comment will be helpful, thanks!By the way, it will no
CMake Errorif I use ROOT 6.22/06.