Skip to content

Commit c29de17

Browse files
authored
try to fix linking error windows build
1 parent 82a5831 commit c29de17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ endif()
4747
include_directories( ${CMAKE_SOURCE_DIR}/thirdparty )
4848

4949
include_directories( ${CGAL_INCLUDE_DIR} ${CGAL_3RD_PARTY_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${YAML_CPP_INCLUDE_DIR} ${GDAL_INCLUDE_DIR})
50-
link_directories(${YamlCpp_LIBRARY_DIRS})
5150

5251
# # build ptinpoly as static lib
5352
# add_library(ptinpoly STATIC thirdparty/ptinpoly.c)
@@ -64,6 +63,6 @@ set_target_properties(
6463
PROPERTIES CXX_STANDARD 11
6564
)
6665

67-
target_link_libraries( 3dfier ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${GDAL_LIBRARY} ${YAML_CPP_LIBRARIES} Boost::program_options Boost::filesystem Boost::locale Boost::chrono LASlib)
66+
target_link_libraries( 3dfier ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${GDAL_LIBRARY} yaml-cpp Boost::program_options Boost::filesystem Boost::locale Boost::chrono LASlib)
6867

69-
install(TARGETS 3dfier DESTINATION bin)
68+
install(TARGETS 3dfier DESTINATION bin)

0 commit comments

Comments
 (0)