From 9e104f40dfc5ed9bd8ba02ce4ac9eab26f6c637c Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 17 Dec 2016 22:28:42 -0600 Subject: [PATCH] Remove executables from install when OX_BUILD_EXEC is set to OFF --- src/ox/fs/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ox/fs/CMakeLists.txt b/src/ox/fs/CMakeLists.txt index 7886c83b9..3633bdfcf 100644 --- a/src/ox/fs/CMakeLists.txt +++ b/src/ox/fs/CMakeLists.txt @@ -24,12 +24,14 @@ install( include/ox/fs ) -install(TARGETS oxfstool OxFS - RUNTIME DESTINATION bin +install(TARGETS OxFS LIBRARY DESTINATION lib ARCHIVE DESTINATION lib ) if(OX_BUILD_EXEC STREQUAL "ON") add_subdirectory(test) + install(TARGETS oxfstool + RUNTIME DESTINATION bin + ) endif()