CMakeLists.txt: document usage of IFCDIRS.

This commit is contained in:
Stinkfist0
2016-05-30 15:29:45 +03:00
parent 906fefaf35
commit 53fadd9808
+3 -2
View File
@@ -60,6 +60,8 @@ IF(NOT IS_ABSOLUTE ${LIBDIR})
ENDIF() ENDIF()
MESSAGE(STATUS "LIBDIR: ${LIBDIR}") MESSAGE(STATUS "LIBDIR: ${LIBDIR}")
set(IFCDIRS "") # for *nix rpaths
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
add_definitions(-DBUILD_SHARED_LIBS) add_definitions(-DBUILD_SHARED_LIBS)
if (MSVC) if (MSVC)
@@ -67,6 +69,7 @@ if (BUILD_SHARED_LIBS)
# There will be couple hundreds of these so suppress them away. # There will be couple hundreds of these so suppress them away.
add_definitions(-wd4251) add_definitions(-wd4251)
endif() endif()
set(IFCDIRS "${LIBDIR}")
endif() endif()
# Create cache entries if absent for environment variables # Create cache entries if absent for environment variables
@@ -425,7 +428,6 @@ endif()
SET(IFCLIBS "") SET(IFCLIBS "")
SET(IFCBINS "") SET(IFCBINS "")
SET(IFCDIRS "")
# IfcParse # IfcParse
file(GLOB IFCPARSE_H_FILES ../src/ifcparse/*.h) file(GLOB IFCPARSE_H_FILES ../src/ifcparse/*.h)
@@ -470,7 +472,6 @@ IF(BUILD_SHARED_LIBS)
add_library(IfcGeom SHARED ${IFCGEOM_FILES}) add_library(IfcGeom SHARED ${IFCGEOM_FILES})
set(IFCBINS "${IFCBINS};IfcGeom") set(IFCBINS "${IFCBINS};IfcGeom")
endif() endif()
SET(IFCDIRS "${LIBDIR}")
ELSE() ELSE()
ADD_LIBRARY(IfcGeom STATIC ${IFCGEOM_FILES}) ADD_LIBRARY(IfcGeom STATIC ${IFCGEOM_FILES})
set(IFCLIBS "${IFCLIBS};IfcGeom") set(IFCLIBS "${IFCLIBS};IfcGeom")