Skip to content

Commit

Permalink
CxxParser compile fixes for linux etc (#3370)
Browse files Browse the repository at this point in the history
  • Loading branch information
UffeJakobsen authored May 31, 2024
1 parent 1384889 commit e270963
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CxxParser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ add_library(libCxxParser STATIC
${BisonSrcs}
)

if(UNIX AND NOT APPLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()

if(APPLE)
add_definitions(-fPIC)
endif()

# Include paths
target_include_directories(libCxxParser
PUBLIC "${CL_SRC_ROOT}/CxxParser"
Expand Down

0 comments on commit e270963

Please sign in to comment.