Skip to content

Commit

Permalink
Merge pull request #198 from Lasall/cmake-export-fix
Browse files Browse the repository at this point in the history
Fix cmake package export.
  • Loading branch information
birm authored May 6, 2020
2 parents 82817a6 + 1aa9e2e commit 70a2be8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMake/ensmallen-config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@PACKAGE_INIT@

include(${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake)
check_required_components(ensmallen)
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ target_include_directories(ensmallen INTERFACE

# Set warning flags for target.
if(MSVC)
target_compile_options(ensmallen INTERFACE /Wall )
target_compile_options(ensmallen INTERFACE $<BUILD_INTERFACE:/Wall>)
else()
target_compile_options(ensmallen INTERFACE -Wall -Wpedantic -Wunused-parameter)
target_compile_options(ensmallen INTERFACE $<BUILD_INTERFACE:-Wall -Wpedantic -Wunused-parameter>)
endif()

# Find OpenMP and link it.
Expand Down
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### ensmallen ?.??.?: "???"
###### ????-??-??
* Fix CMake package export
([#198](https://github.com/mlpack/ensmallen/pull/198)).

### ensmallen 2.12.1: "Stir Crazy"
###### 2020-04-20
Expand Down

0 comments on commit 70a2be8

Please sign in to comment.