From fca8a2a4068d90acc6923e91e4204123c7c96fac Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 6 Dec 2018 12:34:18 +0100 Subject: [PATCH 1/1] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2