From: Alaric S. <sen...@gm...> - 2017-10-04 16:12:47
|
Hello, I'm trying to compile plplot with mingw64 on linux and I've got a strange issue since this morning. Cmake is trying to include non-generated files, here is the error: *CMake Error at lib/qsastime/CMakeLists.txt:53 (include): include could not find load file: /home/alaric/plplot-5.13.0//lib/qsastime/tai-utc-gen.cmakeCMake Error at lib/qsastime/CMakeLists.txt:54 (include): include could not find load file: /home/alaric/plplot-5.13.0//lib/qsastime/deltaT-gen.cmakeCMake Error at include/CMakeLists.txt:45 (INCLUDE): INCLUDE could not find load file: /home/alaric/plplot-5.13.0//include/ImportExecutables.cmake* When I'm looking at 'lib/qsastime/CMakeLists.txt' this block appears: # Routine for generating a header containing data to be used by the # TAI-UTC transformation code. *if(NOT CMAKE_CROSSCOMPILING) add_executable(tai-utc-gen ${CMAKE_CURRENT_SOURCE_DIR}/tai-utc-gen.c) if(MATH_LIB) target_link_libraries(tai-utc-gen ${MATH_LIB}) endif(MATH_LIB) add_executable(deltaT-gen ${CMAKE_CURRENT_SOURCE_DIR}/deltaT-gen.c ${CMAKE_CURRENT_SOURCE_DIR}/dspline.c) export(TARGETS tai-utc-gen FILE ${CMAKE_CURRENT_BINARY_DIR}/tai-utc-gen.cmake ) export(TARGETS deltaT-gen FILE ${CMAKE_CURRENT_BINARY_DIR}/deltaT-gen.cmake )else(NOT CMAKE_CROSSCOMPILING) # Generated by initial non-cross build above. include(${CMAKE_NATIVE_BINARY_DIR}/lib/qsastime/tai-utc-gen.cmake) include(${CMAKE_NATIVE_BINARY_DIR}/lib/qsastime/deltaT-gen.cmake)endif(NOT CMAKE_CROSSCOMPILING)* So, I don't really understand how the files included in the else statement are supposed to be generated when I'm cross-compiling. I tried to generate them by removing the condition but of course the compilation of doesn't pass in the makefile ! Sorry if my problem is a kind of weird or obvious to resolve and thank's a lot for reading ! Sincerely, Alaric SENAT |