diff --git a/io/CMakeLists.txt b/io/CMakeLists.txt index 25b8ab88eab..4943ca63a84 100644 --- a/io/CMakeLists.txt +++ b/io/CMakeLists.txt @@ -17,7 +17,7 @@ if(NOT WIN32) mark_as_advanced(PCL_IO_ENABLE_MAND_LOCKING) if (NOT PCL_IO_ENABLE_MAND_LOCKING) add_definitions(-DNO_MANDATORY_LOCKING) - endif(PCL_IO_ENABLE_MAND_LOCKING) + endif(NOT PCL_IO_ENABLE_MAND_LOCKING) endif(NOT WIN32) if(build)