Skip to content

Wrong include path for LU files ? #23

@JasonMarechal25

Description

@JasonMarechal25

During some integration using fetch_content_declare/make_available I got the following error:

CMake Error in src/cpp/lpnamer/problem_modifier/CMakeLists.txt:
  Imported target "Antares::antares-solver-simulation" includes non-existent
  path

    "/home/marechaljas/CLionProjects/build_debug/_deps/sirius_solver-src/src/LU/"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Looking at the CMakeLists.txt we can read

target_include_directories(sirius_solver PUBLIC 
	$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/SRS/>
	$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/LU/>
	$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/PNE/>)

However their is no LU directory at source root. LU directories are in simplexe directory

image

Changing the path to $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/SIMPLEXE/LU/> fix the issue locally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions