Skip to content

Commit

Permalink
Specified installation configuration as release. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf authored Sep 30, 2023
1 parent 8b388ab commit a4b536b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ set_target_properties(hdrbg PROPERTIES
target_compile_options(hdrbg PRIVATE -O2 -Wall -Wextra -fstrict-aliasing)

install(TARGETS hdrbg
CONFIGURATIONS Release
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(FILES ${CMAKE_BINARY_DIR}/hdrbg.pc
CONFIGURATIONS Release
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig
)
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ install()
cd build
cmake ..
cmake --build . --parallel
sudo cmake --install .
sudo cmake --install . --config Release
}

if [ "$1" = rm ]
Expand Down

0 comments on commit a4b536b

Please sign in to comment.