mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
CMakeLists.txt: append possible extra libraries to OPENCASCADE_LIBRARIES before the variable is used for any target.
This commit is contained in:
+11
-11
@@ -244,6 +244,17 @@ IF(COLLADA_SUPPORT)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
# Make sure cross-referenced symbols between static OCC libraries get
|
||||||
|
# resolved. Also add thread and rt libraries.
|
||||||
|
get_filename_component(libTKernelExt ${libTKernel} EXT)
|
||||||
|
if("${libTKernelExt}" STREQUAL ".a")
|
||||||
|
find_package(Threads)
|
||||||
|
if (NOT APPLE)
|
||||||
|
set(LIB_RT "rt")
|
||||||
|
endif()
|
||||||
|
set(OPENCASCADE_LIBRARIES ${OPENCASCADE_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${LIB_RT} dl)
|
||||||
|
endif()
|
||||||
|
|
||||||
# TODO Are these needed on other platforms still or can these be removed for good?
|
# TODO Are these needed on other platforms still or can these be removed for good?
|
||||||
IF (NOT WIN32)
|
IF (NOT WIN32)
|
||||||
INCLUDE(CheckIncludeFileCXX)
|
INCLUDE(CheckIncludeFileCXX)
|
||||||
@@ -474,17 +485,6 @@ if (IFCCONVERT_DOUBLE_PRECISION)
|
|||||||
set_target_properties(IfcConvert PROPERTIES COMPILE_FLAGS -DIFCCONVERT_DOUBLE_PRECISION)
|
set_target_properties(IfcConvert PROPERTIES COMPILE_FLAGS -DIFCCONVERT_DOUBLE_PRECISION)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Make sure cross-referenced symbols between static OCC libraries get
|
|
||||||
# resolved. Also add thread and rt libraries.
|
|
||||||
get_filename_component(libTKernelExt ${libTKernel} EXT)
|
|
||||||
if("${libTKernelExt}" STREQUAL ".a")
|
|
||||||
find_package(Threads)
|
|
||||||
if (NOT APPLE)
|
|
||||||
set(LIB_RT "rt")
|
|
||||||
endif()
|
|
||||||
set(OPENCASCADE_LIBRARIES ${OPENCASCADE_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${LIB_RT} dl)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(IfcConvert ${IFCOPENSHELL_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${Boost_LIBRARIES} ${OPENCOLLADA_LIBRARIES} ${ICU_LIBRARIES})
|
TARGET_LINK_LIBRARIES(IfcConvert ${IFCOPENSHELL_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${Boost_LIBRARIES} ${OPENCOLLADA_LIBRARIES} ${ICU_LIBRARIES})
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
SET_INSTALL_RPATHS(IfcConvert "${IFCOPENSHELL_LIBARY_DIR};${OCC_LIBRARY_DIR};${Boost_LIBRARY_DIRS};${OPENCOLLADA_LIBRARY_DIR};${ICU_LIBRARY_DIR}")
|
SET_INSTALL_RPATHS(IfcConvert "${IFCOPENSHELL_LIBARY_DIR};${OCC_LIBRARY_DIR};${Boost_LIBRARY_DIRS};${OPENCOLLADA_LIBRARY_DIR};${ICU_LIBRARY_DIR}")
|
||||||
|
|||||||
Reference in New Issue
Block a user