diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 65cb365..9bd7906 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -32,6 +32,11 @@ target_sources( openemsh "${CMAKE_CURRENT_SOURCE_DIR}/app/openemsh.cpp" ) +set_target_properties( openemsh + PROPERTIES + POSITION_INDEPENDENT_CODE ON + ) + target_compile_definitions( openemsh PRIVATE $<$:DEBUG> @@ -48,7 +53,7 @@ target_compile_options( openemsh $<$,$>:-Wall> $<$,$>:-Wextra> # $<$,$>:-Weffc++> - $<$,$>:-fexceptions> + $<$,$>:-fno-exceptions> ) target_include_directories( openemsh