Skip to content

Commit

Permalink
ENH: set preprocessor macro in cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunner246 committed May 28, 2024
1 parent 78d3c19 commit ef5ea6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions gtfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ endif ()

include_directories(${CMAKE_SOURCE_DIR}/common/logging/include)

add_compile_definitions(LIBRARY_EXPORTS)

add_library(${PROJECT_NAME}
src/TestObject.cpp
src/TestObject.h
Expand Down
2 changes: 0 additions & 2 deletions gtfs/src/TestObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

// TODO just for testing purposes - move later to a separate file

#define LIBRARY_EXPORTS // TODO define this in CMakeLists.txt

#ifdef _WIN32
#ifdef LIBRARY_EXPORTS
#define GTFS_API __declspec(dllexport)
Expand Down

0 comments on commit ef5ea6e

Please sign in to comment.