Skip to content

Commit

Permalink
Fixes for building on OpenBSD. (#348)
Browse files Browse the repository at this point in the history
Also need to set Qt5_DIR=/usr/local/lib/qt5/cmake/Qt5 when running cmake.
  • Loading branch information
cgdae committed Jul 1, 2023
1 parent ac8ddba commit a5be3d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/Modules/DetectOS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(TARGET_PLATFORM_FREEBSD 1)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(TARGET_PLATFORM_MACOS 1)
elseif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
set(TARGET_PLATFORM_OPENBSD 1)
else()
message(FATAL_ERROR "Unsupported OS: ${CMAKE_SYSTEM_NAME}")
endif ()
3 changes: 3 additions & 0 deletions import/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ if(${X11_FOUND})
link_directories(/usr/X11/lib)
link_directories(/opt/X11/lib)
endif()
if(TARGET_PLATFORM_OPENBSD)
link_directories(/usr/X11R6/lib)
endif()
endif()

add_executable(nedit-import
Expand Down

0 comments on commit a5be3d1

Please sign in to comment.