From: Julien Schueller Date: Thu, 6 Dec 2018 11:34:18 +0000 (+0100) Subject: Update CMakeLists.txt X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fca8a2a4068d90acc6923e91e4204123c7c96fac;hp=edcffb7d0655507d3126704c71661e8c546122ef;p=nlopt.git Update CMakeLists.txt --- diff --git a/CMakeLists.txt b/CMakeLists.txt index feeb955..321f2a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -263,8 +263,8 @@ get_target_property (NLOPT_PRIVATE_INCLUDE_DIRS ${nlopt_lib} INCLUDE_DIRECTORIES target_include_directories (${nlopt_lib} INTERFACE "$" "$/${CMAKE_INSTALL_INCLUDEDIR}>") if (BUILD_SHARED_LIBS) - target_compile_definitions (${nlopt_lib} PUBLIC -DNLOPT_DLL) - target_compile_definitions (${nlopt_lib} PRIVATE -DNLOPT_DLL_EXPORT) + target_compile_definitions (${nlopt_lib} PUBLIC NLOPT_DLL) + target_compile_definitions (${nlopt_lib} PRIVATE NLOPT_DLL_EXPORT) endif () # pass -fPIC in case swig module is built with static library