mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
windoof dll export is not as easy as it should!
This commit is contained in:
parent
ab83f20c29
commit
ae2d022801
2 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@ namespace greeter {
|
|||
* @brief A class for saying hello in multiple languages
|
||||
*/
|
||||
class GREETER_EXPORT Greeter {
|
||||
protected:
|
||||
std::string name;
|
||||
|
||||
public:
|
||||
|
@ -20,7 +21,7 @@ namespace greeter {
|
|||
* @brief Creates a new greeter
|
||||
* @param name the name to greet
|
||||
*/
|
||||
explicit Greeter(std::string name);
|
||||
explicit Greeter(std::string _name);
|
||||
|
||||
/**
|
||||
* @brief Creates a localized string containing the greeting
|
||||
|
|
|
@ -54,7 +54,7 @@ if(NOT TEST_INSTALLED_VERSION)
|
|||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
target_compile_options(Greeter PUBLIC -Wall -Wpedantic -Wextra -Werror)
|
||||
elseif(MSVC)
|
||||
# XXX target_compile_options(Greeter PUBLIC /W4 /WX)
|
||||
target_compile_options(Greeter PUBLIC /W4 /WX)
|
||||
target_compile_definitions(GreeterTests PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue