Commit d0d5ac78 authored by incardon's avatar incardon

Fixing detection of tinyobjloader

parent b254bac4
...@@ -44,7 +44,7 @@ endif() ...@@ -44,7 +44,7 @@ endif()
find_package(Boost 1.66.0 REQUIRED COMPONENTS unit_test_framework iostreams program_options) find_package(Boost 1.66.0 REQUIRED COMPONENTS unit_test_framework iostreams program_options)
find_package(MPI REQUIRED) find_package(MPI REQUIRED)
find_package(HDF5 REQUIRED) find_package(HDF5 REQUIRED)
find_package(TinyObjLoader ) find_package(TinyObjLoader)
find_package(PETSc) find_package(PETSc)
if(CUDA_FOUND) if(CUDA_FOUND)
......
# - Try to find LibHilbert # - Try to find LibHilbert
# Once done this will define # Once done this will define
# #
# TINYOBJLOADER_FOUND - system has LibHilbert # TINYOBJLOADER_FOUND - system has TinyObjLoader
# TINYOBJLOADER_INCLUDE_DIRS - include directories for PETSc # TINYOBJLOADER_INCLUDE_DIRS - include directories for TinyObjLoader
# TINYOBJLOADER_LIBRARY_DIRS - library directories for PETSc # TINYOBJLOADER_LIBRARY_DIRS - library directories for TinyObjLoader
# TINYOBJLOADER_LIBRARIES - libraries for PETSc # TINYOBJLOADER_LIBRARIES - libraries for TinyObjLoader
# #
#============================================================================= #=============================================================================
# Copyright (C) 2010-2016 Pietro Incardona # Copyright (C) 2010-2016 Pietro Incardona
......
...@@ -47,7 +47,7 @@ endif() ...@@ -47,7 +47,7 @@ endif()
target_link_libraries(io ${Boost_LIBRARIES}) target_link_libraries(io ${Boost_LIBRARIES})
target_link_libraries(io ${HDF5_LIBRARIES}) target_link_libraries(io ${HDF5_LIBRARIES})
target_link_libraries(io -L${TINYOBJLOADER_LIBRARY_DIRS} -ltinyobjloader ) target_link_libraries(io ${TINYOBJLOADER_LIBRARIES} )
if (PETSC_FOUND) if (PETSC_FOUND)
target_link_libraries(io ${PETSC_LIBRARIES}) target_link_libraries(io ${PETSC_LIBRARIES})
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment