Skip to content

Commit

Permalink
Fix that if BINDIR is empty CMake does not fail
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Melik-Merkumians <melik-merkumians@acin.tuwien.ac.at>
  • Loading branch information
MartinMelikMerkumians committed Jan 8, 2024
1 parent 08f173b commit 46737eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/src/ports/POSIX/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ if( NOT OpENer_TESTS)
endif()
endif()

install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/OpENer DESTINATION ${CMAKE_INSTALL_BINDIR})
if(NOT ${CMAKE_INSTALL_BINDIR} STREQUAL "")
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/OpENer DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})
endif()

0 comments on commit 46737eb

Please sign in to comment.