Delete the remove_definitons command from sampled_functions CMakeLists.txt because it will be inherited from the top level examples CMakeLists.txt. Change-Id: I25593587df0ae84fd8ddddc589bc2a13f3777427
diff --git a/examples/sampled_function/CMakeLists.txt b/examples/sampled_function/CMakeLists.txt index 4e33daa..57f31d1 100644 --- a/examples/sampled_function/CMakeLists.txt +++ b/examples/sampled_function/CMakeLists.txt
@@ -28,12 +28,5 @@ # # Author: vitus@google.com (Michael Vitus) -# Only Ceres itself should be compiled with CERES_BUILDING_SHARED_LIBRARY -# defined, any users of Ceres will have CERES_USING_SHARED_LIBRARY defined -# for them in Ceres' config.h if appropriate. -if (BUILD_SHARED_LIBS) - remove_definitions(-DCERES_BUILDING_SHARED_LIBRARY) -endif() - add_executable(sampled_function sampled_function.cc) target_link_libraries(sampled_function ceres)