Skip to content

Commit

Permalink
Enable GNU C extensions for nlopt build
Browse files Browse the repository at this point in the history
Fixes #3848
  • Loading branch information
10110111 committed Sep 19, 2024
1 parent e689ff5 commit 17ddd79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/LensDistortionEstimator/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ endif()

TARGET_COMPILE_OPTIONS(LensDistortionEstimator-static PRIVATE "-DHAVE_NLOPT")
IF(NLopt_ADDED)
SET_TARGET_PROPERTIES(nlopt PROPERTIES C_EXTENSIONS ON)
ADD_DEPENDENCIES(LensDistortionEstimator-static generate-cpp)
TARGET_INCLUDE_DIRECTORIES(LensDistortionEstimator-static
PRIVATE ${CPM_PACKAGE_NLopt_BINARY_DIR} ${CPM_PACKAGE_NLopt_SOURCE_DIR}/src/api)
Expand Down

0 comments on commit 17ddd79

Please sign in to comment.