From c8ce910fe17ecbc64ad728aac731c1fda8e84c33 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Fri, 26 Apr 2024 01:16:46 -0400 Subject: [PATCH] warnings --- CMakeLists.txt | 2 +- cmake/warnings.cmake | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 241b9d9..b3e837f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.16.11) +set(BLT_VERSION 0.16.12) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index 65231a4..035c0df 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -12,8 +12,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") message(STATUS "Clang libs: ${Green}stdc++fs${ColourReset}") target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic -fdiagnostics-color=always) target_link_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic -fdiagnostics-color=always) - target_link_options(${PROJECT_NAME} PUBLIC -export_dynamic -rdynamic) - target_link_libraries(${PROJECT_NAME} PUBLIC stdc++fs) + #target_link_options(${PROJECT_NAME} PUBLIC -export_dynamic -rdynamic) + if(NOT EMSCRIPTEN) + target_link_libraries(${PROJECT_NAME} PUBLIC stdc++fs) + endif () elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # using GCC message(STATUS "GCC Compile: ${Green}-Wall -Wextra -Wpedantic -fdiagnostics-color=always${ColourReset}")