diff --git a/CMakeLists.txt b/CMakeLists.txt index a398488a2..fb5253429 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -249,9 +249,9 @@ install( DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION include ) # begin editline stuff if(WIN32) target_compile_definitions( fc PRIVATE _CRT_NONSTDC_NO_DEPRECATE ) -elseif(WIN32) - target_compile_definitions (fc PRIVATE HAVE_EDITLINE) - set(editline_libraries editline) +else(WIN32) + target_compile_definitions( fc PRIVATE HAVE_EDITLINE ) + set( editline_libraries editline ) endif(WIN32) # end editline stuff