diff --git a/build/CMake/CMakeLists.txt b/build/CMake/CMakeLists.txt index 5aaa576..2edaf20 100644 --- a/build/CMake/CMakeLists.txt +++ b/build/CMake/CMakeLists.txt @@ -15,4 +15,4 @@ add_library(epanet STATIC ../../src/epanet.c ../../src/hydraul.c ../../src/hash # the standalone executable include_directories(../../src) add_executable(runepanet ../../run/main.c) -target_link_libraries (runepanet LINK_PUBLIC epanet) +target_link_libraries (runepanet LINK_PUBLIC epanet m) diff --git a/include/epanet2.h b/include/epanet2.h index 8527d83..153fef4 100755 --- a/include/epanet2.h +++ b/include/epanet2.h @@ -47,6 +47,8 @@ #else #define DLLEXPORT #endif + #else + #define DLLEXPORT #endif #endif @@ -271,4 +273,4 @@ extern "C" { } #endif -#endif //EPANET2_H \ No newline at end of file +#endif //EPANET2_H