Skip to content

Commit

Permalink
libs: Add OpenCPN#3527 review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Leamas committed Jan 23, 2024
1 parent cd6ba6d commit 91ae80b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libs/geoprim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if (TARGET ocpn::geoprim)
return ()
endif ()

# Fixme (#3527) dependency on main opencpn
if (NOT CMAKE_MODULE_PATH)
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake)
endif ()
Expand Down Expand Up @@ -39,6 +40,7 @@ target_include_directories(GEOPRIM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
target_include_directories(GEOPRIM PRIVATE ${wxWidgets_INCLUDE_DIRS})
target_link_libraries(GEOPRIM PRIVATE ${wxWidgets_LIBRARIES})

# Fixme (#3527) dependency on main opencpn
if (QT_ANDROID)
target_include_directories(GEOPRIM PRIVATE ${CMAKE_SOURCE_DIR}/android)
elseif (MSVC)
Expand Down
1 change: 1 addition & 0 deletions libs/glu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ IF(QT_ANDROID)
ADD_DEFINITIONS( " -fPIC")
ENDIF(QT_ANDROID)

# Fixme (#3527) dependencies on main opencpn
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
INCLUDE_DIRECTORIES(include)

Expand Down
1 change: 1 addition & 0 deletions libs/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if (TARGET ocpn::gtest)
return ()
endif ()

# Fixme (#3527) dependency on main opencpn
if (NOT CMAKE_MODULE_PATH)
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake)
endif ()
Expand Down
2 changes: 2 additions & 0 deletions libs/libtess2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang|AppleClang")
add_compile_options("-Wno-format" "-Wno-unknown-pragmas")
endif ()

# Fixme (#3527) dependency on main opencpn
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)

INCLUDE_DIRECTORIES(Include)

IF(WIN32)
Expand Down
4 changes: 4 additions & 0 deletions libs/mipmap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ if (TARGET ocpn::mipmap)
return ()
endif ()

# Fixme (#3527) dependency on main opencpn
if (NOT CMAKE_MODULE_PATH)
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake)
endif ()

# Fixme (#3527) dependency on main opencpn
include(GetArch)
GetArch()

Expand Down Expand Up @@ -35,6 +37,8 @@ target_include_directories(MIPMAP
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/mipmap
)

# Fixme (#3527) QT_ANDROID, HAVE_MSSE etc., are from main opencpn.
# Options needed to make them independent
if( NOT QT_ANDROID)
# always use optimizations for the texture compression which is much faster
if (NOT MSVC)
Expand Down
1 change: 1 addition & 0 deletions libs/sound/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if (TARGET ocpn::sound)
return ()
endif ()

# Fixme (#3527) dependency on main opencpn
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake ${CMAKE_MODULE_PATH})

find_package(Portaudio)
Expand Down
3 changes: 2 additions & 1 deletion libs/sqlite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ if (NOT SQLITE_FOUND OR APPLE OR WIN32 OR QT_ANDROID)
_SQLITE INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include
)

# We do not need extensions, and using them in a static library causes trouble with libdl linking order.
# We do not need extensions, and using them in a static library causes
# trouble with libdl linking order.
if (UNIX AND NOT APPLE)
add_definitions(" -DSQLITE_OMIT_LOAD_EXTENSION")
endif (UNIX AND NOT APPLE)
Expand Down
2 changes: 2 additions & 0 deletions libs/texcmp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if (NOT DEFINED ARCH)
endif ()

include(FindPkgConfig)

# Fixme (#3527) dependency on main opencpn
include(CompilerSupport)

set(SRC
Expand Down

0 comments on commit 91ae80b

Please sign in to comment.