Skip to content

Commit

Permalink
Fixed linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
ihedvall committed Jan 24, 2024
1 parent 981cbb3 commit c752613
Show file tree
Hide file tree
Showing 7 changed files with 218 additions and 216 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ option(DBC_TOOLS "Building applications" OFF)
option(DBC_TEST "Building unit test" OFF)
option(DBC_PYTHON "Building Python module" OFF)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if(DBC_TOOLS AND USE_VCPKG)
list(APPEND VCPKG_MANIFEST_FEATURES "tools")
endif()
Expand Down
1 change: 1 addition & 0 deletions include/dbc/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <string>
#include <vector>
#include <map>
#include <memory>
#include "dbc/attribute.h"
#include "dbc/isampleobserver.h"

Expand Down
1 change: 1 addition & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) # optional, keep compiler extensions off
set(CMAKE_DEBUG_POSTFIX "") # The import lib function doesn't accept the 'd' pos fix



cmake_print_properties(TARGETS Pytest::Pytest PROPERTIES
NAME
LOCATION)
Expand Down
2 changes: 0 additions & 2 deletions python/src/pydbcfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: MIT
*/

#pragma once

#include <dbc/dbcfile.h>
#include <pybind11/stl.h>

Expand Down
Loading

0 comments on commit c752613

Please sign in to comment.