Merge pull request #1981 from edisongustavo/develop
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Mon, 28 Jan 2019 14:44:42 +0000 (15:44 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Jan 2019 14:44:42 +0000 (15:44 +0100)
Fix include directory of exported targets

1  2 
CMakeLists.txt

diff --cc CMakeLists.txt
@@@ -162,9 -149,15 +162,9 @@@ if (${DYNAMIC_ARCH}
    endforeach()
  endif ()
  
 -# Only build shared libs for MSVC
 -if (MSVC)
 -  set(BUILD_SHARED_LIBS ON)
 -endif()
 -
 -
  # add objects to the openblas lib
  add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${RELA_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE})
- target_include_directories(${OpenBLAS_LIBNAME} INTERFACE $<INSTALL_INTERFACE:include>)
+ target_include_directories(${OpenBLAS_LIBNAME} INTERFACE $<INSTALL_INTERFACE:include/openblas${SUFFIX64}>)
  
  # Android needs to explicitly link against libm
  if(ANDROID)