vcpkg/ports/omplapp/fix_boost_static_link.patch
Akash d12cbb40ed
[ompl] Fix linking using ${OMPL_LIBRARIES} (#18908)
* Fix _IMPORT_PREFIX

* Export cmake targets file

* Fix config

* Make separate omplapp port

* Run x-add-version for omplapp

* Fix versions

* Fix omplapp static builds

* Run x-add-version

* Update ports/omplapp/portfile.cmake

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>

* Update ports/omplapp/portfile.cmake

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>

* Put files in quotes

* Run x-add-version

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
2021-07-22 15:00:49 -07:00

18 lines
714 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5c3c88..3a4a7d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,10 +36,10 @@ set(OMPL_DEMO_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/ompl/demos"
set(OMPL_CMAKE_UTIL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ompl/CMakeModules"
CACHE FILEPATH "Path to directory with auxiliary CMake scripts for OMPL")
-if(MSVC)
+if(false)
add_definitions(-DBOOST_ALL_NO_LIB)
add_definitions(-DBOOST_PROGRAM_OPTIONS_DYN_LINK)
-endif(MSVC)
+endif(false)
# Ensure dynamic linking with boost unit_test_framework
add_definitions(-DBOOST_TEST_DYN_LINK)
# Avoid valgrind error due to overflow error, cf. https://bitbucket.org/ompl/ompl/issues/543